mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
CI: tweak: compile artifacts in stable Rust
This commit is contained in:
parent
917355685c
commit
92059c3de4
@ -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
|
||||
|
2
.github/workflows/pr-workflow.yml
vendored
2
.github/workflows/pr-workflow.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
rustfmt-check:
|
||||
rustfmt-nightly-check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
Loading…
x
Reference in New Issue
Block a user