Skip to content

Commit

Permalink
ci: run nextest for cross build
Browse files Browse the repository at this point in the history
  • Loading branch information
vnghia committed Dec 11, 2024
1 parent bcb0ba3 commit 8b6018f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,7 @@ jobs:
- name: Build and test
run: |
${{ matrix.platform.command }} build --locked --target ${{ matrix.platform.target }} --profile ${{ steps.build.outputs.profile }}
if [[ ${{ matrix.platform.command }} == 'cross' ]]; then
cross test --locked --target ${{ matrix.platform.target }} --profile ${{ steps.build.outputs.profile }} --workspace
else
cargo nextest run --locked --target ${{ matrix.platform.target }} --profile ci --cargo-profile ${{ steps.build.outputs.profile }} --workspace
fi
${{ matrix.platform.command }} == 'cross' && format('cross-util run --target {0} --', matrix.platform.target) || '' }} cargo nextest run --locked --target ${{ matrix.platform.target }} --profile ci --cargo-profile ${{ steps.build.outputs.profile }} --workspace
env:
LASTFM_KEY: ${{ steps.build.outputs.docker-arch == 'amd64' && secrets.LASTFM_KEY || '' }}
SPOTIFY_ID: ${{ steps.build.outputs.docker-arch == 'amd64' && secrets.SPOTIFY_ID || '' }}
Expand Down
2 changes: 2 additions & 0 deletions ci/cross-pre-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ set -euxo pipefail
if [[ "$CROSS_TARGET" == "aarch64-unknown-linux-gnu" ]]; then
apt-get update && apt-get --assume-yes install libclang-10-dev
fi

curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

0 comments on commit 8b6018f

Please sign in to comment.