Skip to content

Commit

Permalink
Pass --target
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 20, 2023
1 parent 399a5e7 commit 1a364b3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ jobs:
with:
toolchain: nightly-2023-10-10
if: matrix.min
- run: rustup target add ${{ matrix.target }}

# On one builder produce the source tarball since there's no need to produce
# it everywhere
Expand All @@ -164,9 +165,6 @@ jobs:
- uses: ./.github/actions/binary-compatible-builds
with:
name: ${{ matrix.build }}
- run: |
echo CARGO_BUILD_TARGET=${{ matrix.target }} >> $GITHUB_ENV
rustup target add ${{ matrix.target }}

- name: Configure minimal build
if: matrix.min
Expand All @@ -182,9 +180,9 @@ jobs:
# Build the `wasmtime` executable. Note that we include some non-default
# features so the release artifacts can be maximally feature-ful.
- run: $CENTOS cargo build --release $BUILD_FLAGS
- run: $CENTOS cargo build --release $BUILD_FLAGS --target ${{ matrix.target }}
if: matrix.min
- run: $CENTOS cargo build --release --features all-arch,component-model
- run: $CENTOS cargo build --release --features all-arch,component-model --target ${{ matrix.target }}
if: '!matrix.min'

# Build `libwasmtime.so`
Expand Down

0 comments on commit 1a364b3

Please sign in to comment.