Skip to content

Commit

Permalink
Set the target explicitly when running tests
Browse files Browse the repository at this point in the history
Without this, we always tested against the default target triple of
the host, even when the job was supposed to test a cross-compiled
build.
  • Loading branch information
Wilfred committed Nov 25, 2023
1 parent dc42b58 commit 6051f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# FIXME: these jobs are falling back to x86-64, so they're not testing anything.
#
# See also https://github.com/cross-rs/cross-toolchains#apple-targets
# - { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, use-cross: true }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04, use-cross: true }
# - { target: aarch64-apple-darwin, os: macos-latest, use-cross: true }
env:
BUILD_CMD: cargo
Expand All @@ -44,7 +44,7 @@ jobs:

- name: Test
shell: bash
run: $BUILD_CMD test
run: $BUILD_CMD test --target ${{ matrix.job.target }}

test_mime_db:
name: Test with MIME database
Expand Down

0 comments on commit 6051f05

Please sign in to comment.