Compare commits
6 Commits
v0.4.5-55-
...
v0.4.4-52-
| Author | SHA1 | Date | |
|---|---|---|---|
|
7c1b3a437f
|
|||
|
3d1e360c4d
|
|||
|
6df220ad73
|
|||
|
ff1c7c9a59
|
|||
|
4459d89eab
|
|||
|
a28de5a712
|
@@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: debian-13
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.94
|
toolchain: 1.90.0
|
||||||
components: cargo
|
components: cargo
|
||||||
|
|
||||||
- name: Extract Version from Cargo.toml
|
- name: Extract Version from Cargo.toml
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check
|
||||||
runs-on: debian-13
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.94
|
toolchain: 1.90.0
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
|
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
|
||||||
@@ -28,13 +28,13 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test Suite
|
name: Test Suite
|
||||||
runs-on: debian-13
|
runs-on: ubuntu-24.04
|
||||||
needs: setup_ssh
|
needs: setup_ssh
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.94
|
toolchain: 1.90.0
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
|
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
|
||||||
@@ -46,13 +46,13 @@ jobs:
|
|||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
runs-on: debian-13
|
runs-on: ubuntu-24.04
|
||||||
needs: setup_ssh
|
needs: setup_ssh
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.94
|
toolchain: 1.90.0
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@@ -65,13 +65,13 @@ jobs:
|
|||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
runs-on: debian-13
|
runs-on: ubuntu-24.04
|
||||||
needs: setup_ssh
|
needs: setup_ssh
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.94
|
toolchain: 1.90.0
|
||||||
- run: rustup component add clippy
|
- run: rustup component add clippy
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@@ -84,13 +84,13 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: build
|
name: build
|
||||||
runs-on: debian-13
|
runs-on: ubuntu-24.04
|
||||||
needs: setup_ssh
|
needs: setup_ssh
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.94
|
toolchain: 1.90.0
|
||||||
- run: |
|
- run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
|
echo "${{ secrets.MYREPO_TOKEN }}" > ~/.ssh/gitlab_deploy_key
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -104,7 +104,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "icarus_meta"
|
name = "icarus_meta"
|
||||||
version = "0.4.5"
|
version = "0.4.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"imghdr",
|
"imghdr",
|
||||||
"infer",
|
"infer",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "icarus_meta"
|
name = "icarus_meta"
|
||||||
version = "0.4.5"
|
version = "0.4.4"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.94"
|
rust-version = "1.90"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
lofty = { version = "0.22.4" }
|
lofty = { version = "0.22.4" }
|
||||||
|
|||||||
@@ -43,13 +43,8 @@ mod tests {
|
|||||||
match test_util::util::file_exists(&dir, &filename) {
|
match test_util::util::file_exists(&dir, &filename) {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
let filepath = test_util::util::get_full_path(&dir, &filename).unwrap();
|
let filepath = test_util::util::get_full_path(&dir, &filename).unwrap();
|
||||||
let new_filepath = test_util::util::generate_newfilepath(&dir).unwrap();
|
match super::get_duration(&filepath) {
|
||||||
|
|
||||||
match test_util::util::copy_file(&filepath, &new_filepath) {
|
|
||||||
Ok(_) => match super::get_duration(&new_filepath) {
|
|
||||||
Ok(duration) => {
|
Ok(duration) => {
|
||||||
test_util::util::remove_file(&new_filepath).unwrap();
|
|
||||||
|
|
||||||
let song_duration: u64 = 41;
|
let song_duration: u64 = 41;
|
||||||
let fetched_song_duration = duration.as_secs();
|
let fetched_song_duration = duration.as_secs();
|
||||||
|
|
||||||
@@ -61,10 +56,6 @@ mod tests {
|
|||||||
Err(err) => {
|
Err(err) => {
|
||||||
assert!(false, "Error: {err:?}");
|
assert!(false, "Error: {err:?}");
|
||||||
}
|
}
|
||||||
},
|
|
||||||
Err(err) => {
|
|
||||||
assert!(false, "Error: {err:?}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
@@ -84,10 +75,8 @@ mod tests {
|
|||||||
let new_filepath = test_util::util::generate_newfilepath(&dir).unwrap();
|
let new_filepath = test_util::util::generate_newfilepath(&dir).unwrap();
|
||||||
|
|
||||||
match test_util::util::copy_file(&filepath, &new_filepath) {
|
match test_util::util::copy_file(&filepath, &new_filepath) {
|
||||||
Ok(_) => match super::get_song_properties(&new_filepath) {
|
Ok(_) => match super::get_song_properties(&filepath) {
|
||||||
Ok(song_properties) => {
|
Ok(song_properties) => {
|
||||||
test_util::util::remove_file(&new_filepath).unwrap();
|
|
||||||
|
|
||||||
let song_duration: u64 = 41;
|
let song_duration: u64 = 41;
|
||||||
let bitrate: u32 = 1;
|
let bitrate: u32 = 1;
|
||||||
let overall_bitrate: u32 = 3;
|
let overall_bitrate: u32 = 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user