mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +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
|
- 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
|
||||||
|
2
.github/workflows/pr-workflow.yml
vendored
2
.github/workflows/pr-workflow.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user