fix: remove invalid --locked flag from cargo commands and fix format string
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 1m3s
PR Review Automation / review (pull_request) Successful in 2m54s
Test / frontend-typecheck (pull_request) Successful in 1m14s
Test / frontend-tests (pull_request) Successful in 1m25s
Test / rust-clippy (pull_request) Successful in 8m1s
Test / rust-tests (pull_request) Successful in 10m11s
All checks were successful
Test / rust-fmt-check (pull_request) Successful in 1m3s
PR Review Automation / review (pull_request) Successful in 2m54s
Test / frontend-typecheck (pull_request) Successful in 1m14s
Test / frontend-tests (pull_request) Successful in 1m25s
Test / rust-clippy (pull_request) Successful in 8m1s
Test / rust-tests (pull_request) Successful in 10m11s
- Remove --locked flag from cargo fmt, clippy, and test commands in CI - Update build.rs to use Rust 2021 direct variable interpolation in format strings
This commit is contained in:
parent
9248811076
commit
1055841b6f
@ -42,7 +42,7 @@ jobs:
|
|||||||
- name: Update version from Git
|
- name: Update version from Git
|
||||||
run: node scripts/update-version.mjs
|
run: node scripts/update-version.mjs
|
||||||
- run: cargo generate-lockfile --manifest-path src-tauri/Cargo.toml
|
- run: cargo generate-lockfile --manifest-path src-tauri/Cargo.toml
|
||||||
- run: cargo fmt --locked --manifest-path src-tauri/Cargo.toml --check
|
- run: cargo fmt --manifest-path src-tauri/Cargo.toml --check
|
||||||
|
|
||||||
rust-clippy:
|
rust-clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -77,7 +77,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-linux-amd64-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-linux-amd64-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-linux-amd64-
|
${{ runner.os }}-cargo-linux-amd64-
|
||||||
- run: cargo clippy --locked --manifest-path src-tauri/Cargo.toml -- -D warnings
|
- run: cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings
|
||||||
|
|
||||||
rust-tests:
|
rust-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-cargo-linux-amd64-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-linux-amd64-${{ hashFiles('**/Cargo.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-cargo-linux-amd64-
|
${{ runner.os }}-cargo-linux-amd64-
|
||||||
- run: cargo test --locked --manifest-path src-tauri/Cargo.toml -- --test-threads=1
|
- run: cargo test --manifest-path src-tauri/Cargo.toml -- --test-threads=1
|
||||||
|
|
||||||
frontend-typecheck:
|
frontend-typecheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
let version = get_version_from_git();
|
let version = get_version_from_git();
|
||||||
|
|
||||||
println!("cargo:rustc-env=APP_VERSION={}", version);
|
println!("cargo:rustc-env=APP_VERSION={version}");
|
||||||
println!("cargo:rerun-if-changed=.git/refs/heads/master");
|
println!("cargo:rerun-if-changed=.git/refs/heads/master");
|
||||||
println!("cargo:rerun-if-changed=.git/refs/tags");
|
println!("cargo:rerun-if-changed=.git/refs/tags");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user