From 6c420fd935b826eb7d06d55e176463eb8c490834 Mon Sep 17 00:00:00 2001 From: FlareFlo Date: Sun, 4 Feb 2024 18:04:36 +0100 Subject: [PATCH] Switch build and run commands to use 'ci' profile in workflow. --- .github/workflows/consistency.yaml | 4 ++-- Cargo.toml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/consistency.yaml b/.github/workflows/consistency.yaml index d9a296c..f89981b 100644 --- a/.github/workflows/consistency.yaml +++ b/.github/workflows/consistency.yaml @@ -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 @@ -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 \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index edb3ecf..b469bd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"]