Skip to content

Commit

Permalink
Fix compilation target in release workflow (rojo-rbx#701)
Browse files Browse the repository at this point in the history
Fixes macOS aarch64 builds not actually outputting x86 binaries by
specifying the `--target` flag during compilation in the release
workflow. These are the same changes as [this PR in
Aftman](LPGhatguy/aftman#34), which had the same
issue, and uses the same workflow.
  • Loading branch information
filiptibell committed Jun 30, 2023
1 parent 46250e7 commit c045b66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
version: 'v0.2.6'

- name: Build Release
run: cargo build --release --locked --verbose
run: cargo build --release --locked --verbose --target ${{ matrix.target }}
env:
# Build into a known directory so we can find our build artifact more
# easily.
Expand All @@ -132,11 +132,11 @@ jobs:
mkdir staging
if [ "${{ matrix.host }}" = "windows" ]; then
cp "output/release/$BIN.exe" staging/
cp "output/${{ matrix.target }}/release/$BIN.exe" staging/
cd staging
7z a ../release.zip *
else
cp "output/release/$BIN" staging/
cp "output/${{ matrix.target }}/release/$BIN" staging/
cd staging
zip ../release.zip *
fi
Expand Down

0 comments on commit c045b66

Please sign in to comment.