CI: tweak: compile artifacts in stable Rust

This commit is contained in:
João Marcos P. Bezerra 2024-11-17 21:05:02 -03:00 committed by João Marcos
parent 917355685c
commit 92059c3de4
2 changed files with 5 additions and 6 deletions

View File

@ -116,7 +116,7 @@ jobs:
- name: Install Rust - name: Install Rust
run: | 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 - uses: Swatinem/rust-cache@v2
with: with:
@ -126,14 +126,13 @@ jobs:
# there's no way to run tests for ARM64 Windows for now # there's no way to run tests for ARM64 Windows for now
if: matrix.target != 'aarch64-pc-windows-msvc' if: matrix.target != 'aarch64-pc-windows-msvc'
run: | 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: | run: |
${{ env.CARGO }} +nightly build --release --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS ${{ env.CARGO }} +stable build --release --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS
env: env:
OUCH_ARTIFACTS_FOLDER: artifacts OUCH_ARTIFACTS_FOLDER: artifacts
RUSTFLAGS: -C strip=symbols
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View File

@ -6,7 +6,7 @@ on:
- "**/*.md" - "**/*.md"
jobs: jobs:
rustfmt-check: rustfmt-nightly-check:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout