Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davemollen committed Aug 4, 2024
1 parent 78b0e02 commit 8a28bf8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ jobs:
strategy:
matrix:
include:
- { name: ubuntu-20.04, os: ubuntu-20.04, cross-target: "" }
- {
name: macos-universal,
os: macos-11,
cross-target: aarch64-apple-darwin,
}
- { name: ubuntu, os: ubuntu-latest, cross-target: "" }
- { name: macos, os: macos-latest, cross-target: x86_64-apple-darwin }
- { name: windows, os: windows-latest, cross-target: "" }
name: Package nih-plug binaries
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -62,24 +58,24 @@ jobs:
# Needed for SIMD
uses: dtolnay/rust-toolchain@nightly
with:
# The macOS AArch64 build is done from an x86_64 macOS CI runner, so
# The macOS x86_64 build is done from an AArch64 macOS CI runner, so
# it needs to be cross compiled
targets: ${{ matrix.cross-target }}

- name: Build nih-plug
working-directory: ./nih-plug
run: |
runner_name=${{ matrix.name }}
if [[ $runner_name = 'macos-universal' ]]; then
if [[ $runner_name = 'macos' ]]; then
export MACOSX_DEPLOYMENT_TARGET=10.13
cargo xtask bundle-universal $binary_name --release
else
cross_target=${{ matrix.cross-target }}
if [[ -n $cross_target ]]; then
cargo xtask bundle $binary_name --release --target $cross_target
else
cargo xtask bundle $binary_name --release
fi
cargo xtask bundle $binary_name --release
fi
- name: Determine build archive name
Expand Down

0 comments on commit 8a28bf8

Please sign in to comment.