mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix compilation target in release workflow (#701)
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](https://github.com/LPGhatguy/aftman/pull/34), which had the same issue, and uses the same workflow.
This commit is contained in:
parent
a9ca77e27f
commit
342fb57d14
1 changed files with 3 additions and 3 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -116,7 +116,7 @@ jobs:
|
||||||
version: 'v0.2.6'
|
version: 'v0.2.6'
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: cargo build --release --locked --verbose
|
run: cargo build --release --locked --verbose --target ${{ matrix.target }}
|
||||||
env:
|
env:
|
||||||
# Build into a known directory so we can find our build artifact more
|
# Build into a known directory so we can find our build artifact more
|
||||||
# easily.
|
# easily.
|
||||||
|
|
@ -132,11 +132,11 @@ jobs:
|
||||||
mkdir staging
|
mkdir staging
|
||||||
|
|
||||||
if [ "${{ matrix.host }}" = "windows" ]; then
|
if [ "${{ matrix.host }}" = "windows" ]; then
|
||||||
cp "output/release/$BIN.exe" staging/
|
cp "output/${{ matrix.target }}/release/$BIN.exe" staging/
|
||||||
cd staging
|
cd staging
|
||||||
7z a ../release.zip *
|
7z a ../release.zip *
|
||||||
else
|
else
|
||||||
cp "output/release/$BIN" staging/
|
cp "output/${{ matrix.target }}/release/$BIN" staging/
|
||||||
cd staging
|
cd staging
|
||||||
zip ../release.zip *
|
zip ../release.zip *
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue