From 92059c3de4154285e66fbf196ad354708e0640f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20P=2E=20Bezerra?= Date: Sun, 17 Nov 2024 21:05:02 -0300 Subject: [PATCH] CI: tweak: compile artifacts in stable Rust --- .github/workflows/build-artifacts-and-run-tests.yml | 9 ++++----- .github/workflows/pr-workflow.yml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-artifacts-and-run-tests.yml b/.github/workflows/build-artifacts-and-run-tests.yml index 788c7a1c..83d5984e 100644 --- a/.github/workflows/build-artifacts-and-run-tests.yml +++ b/.github/workflows/build-artifacts-and-run-tests.yml @@ -116,7 +116,7 @@ jobs: - name: Install Rust run: | - rustup toolchain install stable nightly --profile minimal -t ${{ matrix.target }} + rustup toolchain install stable --profile minimal -t ${{ matrix.target }} - uses: Swatinem/rust-cache@v2 with: @@ -126,14 +126,13 @@ jobs: # there's no way to run tests for ARM64 Windows for now if: matrix.target != 'aarch64-pc-windows-msvc' run: | - ${{ env.CARGO }} +stable test --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS + ${{ env.CARGO }} +stable test --release --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS - - name: Release on nightly + - name: Build artifacts (binary and completions) run: | - ${{ env.CARGO }} +nightly build --release --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS + ${{ env.CARGO }} +stable build --release --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS env: OUCH_ARTIFACTS_FOLDER: artifacts - RUSTFLAGS: -C strip=symbols - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/.github/workflows/pr-workflow.yml b/.github/workflows/pr-workflow.yml index bf20e08f..e804c0c5 100644 --- a/.github/workflows/pr-workflow.yml +++ b/.github/workflows/pr-workflow.yml @@ -6,7 +6,7 @@ on: - "**/*.md" jobs: - rustfmt-check: + rustfmt-nightly-check: runs-on: ubuntu-latest steps: - name: Checkout