ci: run build on unsupported platforms instead of check, bump cross version (#1083)

This commit is contained in:
Clement Tsang 2023-04-03 04:45:36 -04:00 committed by GitHub
parent 8814bc53e3
commit c8c64b0c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View File

@ -150,7 +150,7 @@ jobs:
command: build command: build
args: --release --verbose --locked --target=${{ matrix.info.target }} --features deploy args: --release --verbose --locked --target=${{ matrix.info.target }} --features deploy
use-cross: ${{ matrix.info.cross }} use-cross: ${{ matrix.info.cross }}
cross-version: 0.2.4 cross-version: 0.2.5
- name: Move automatically generated completion/manpage - name: Move automatically generated completion/manpage
shell: bash shell: bash
@ -336,7 +336,7 @@ jobs:
command: build command: build
args: --release --locked --verbose --features deploy --target ${{ matrix.info.target }} args: --release --locked --verbose --features deploy --target ${{ matrix.info.target }}
use-cross: ${{ matrix.info.cross }} use-cross: ${{ matrix.info.cross }}
cross-version: 0.2.4 cross-version: 0.2.5
- name: Move automatically generated completion/manpage - name: Move automatically generated completion/manpage
shell: bash shell: bash

View File

@ -111,7 +111,7 @@ jobs:
command: test command: test
args: --no-run --locked ${{ matrix.features }} --target=${{ matrix.info.target }} args: --no-run --locked ${{ matrix.features }} --target=${{ matrix.info.target }}
use-cross: ${{ matrix.info.cross }} use-cross: ${{ matrix.info.cross }}
cross-version: 0.2.4 cross-version: 0.2.5
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
@ -121,7 +121,7 @@ jobs:
command: test command: test
args: --no-fail-fast ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet args: --no-fail-fast ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet
use-cross: ${{ matrix.info.cross }} use-cross: ${{ matrix.info.cross }}
cross-version: 0.2.4 cross-version: 0.2.5
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
@ -131,17 +131,18 @@ jobs:
command: clippy command: clippy
args: ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings args: ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings
use-cross: ${{ matrix.info.cross }} use-cross: ${{ matrix.info.cross }}
cross-version: 0.2.4 cross-version: 0.2.5
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
# Run cargo check on all other platforms # Check running cargo build on all other platforms.
# TODO: Maybe some of these should be allowed to fail.
other-check: other-check:
needs: pre-job needs: pre-job
runs-on: ${{ matrix.info.os }} runs-on: ${{ matrix.info.os }}
if: ${{ needs.pre-job.outputs.should_skip != 'true' }} if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
continue-on-error: true continue-on-error: true
timeout-minutes: 18 timeout-minutes: 20
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -178,7 +179,7 @@ jobs:
rust: stable, rust: stable,
} }
# Beta; should be allowed to fail. # Beta
- { - {
os: "ubuntu-latest", os: "ubuntu-latest",
target: "x86_64-unknown-linux-gnu", target: "x86_64-unknown-linux-gnu",
@ -246,13 +247,13 @@ jobs:
with: with:
key: ${{ matrix.info.target }} key: ${{ matrix.info.target }}
- name: Check - name: Try building
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.3
with: with:
command: check command: build
args: --all-targets --verbose --target=${{ matrix.info.target }} --locked args: --all-targets --verbose --target=${{ matrix.info.target }} --locked
use-cross: ${{ matrix.info.cross }} use-cross: ${{ matrix.info.cross }}
cross-version: 0.2.4 cross-version: 0.2.5
completion: completion:
name: "CI Pass Check" name: "CI Pass Check"