Skip to content

Commit

Permalink
Switch build and run commands to use 'ci' profile in workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Feb 4, 2024
1 parent 6102cc3 commit 6c420fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/consistency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build latest commit
run: cargo build --release
run: cargo build --profile ci

- name: Download and install reference
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Warthunder-Open-Source-Foundation/wt_ext_cli/releases/latest/download/wt_ext_cli-installer.sh | sh
Expand All @@ -39,7 +39,7 @@ jobs:
run: wt_ext_cli --unpack_vromf -i ./test_data/all_vromfs/ -o ./output_ref

- name: Run latest commit overwriting possible differences
run: cargo run --release -- --unpack_vromf -i ./test_data/all_vromfs/ -o ./output_latest
run: cargo run --profile ci -- --unpack_vromf -i ./test_data/all_vromfs/ -o ./output_latest

- name: Diff folders
run: diff -qr output_ref output_latest
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ inherits = "release"
debug = false
strip = true

# The profile CI will run with
[profile.ci]
inherits = "dev"
opt-level = 2

[features]
default = []
avif2dds = ["image"]
Expand Down

0 comments on commit 6c420fd

Please sign in to comment.