Skip to content

Commit

Permalink
CI: tweak: compile artifacts in stable Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospb19 committed Nov 18, 2024
1 parent 9173556 commit 92059c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-artifacts-and-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "**/*.md"

jobs:
rustfmt-check:
rustfmt-nightly-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 92059c3

Please sign in to comment.