diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-04-27 18:52:05 +0100 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-04-27 18:52:05 +0100 |
| commit | fd56d2a1a7305de3c34dc7ffa88f03dc35c7f57b (patch) | |
| tree | 1c759a81e3061c478277f14498d1884fde12bcf3 /.github/workflows/release.yml | |
| parent | feat(plugin): added the `get_plugin_ids()` query function (diff) | |
| download | sl0ppij-fd56d2a1a7305de3c34dc7ffa88f03dc35c7f57b.tar.gz sl0ppij-fd56d2a1a7305de3c34dc7ffa88f03dc35c7f57b.tar.xz sl0ppij-fd56d2a1a7305de3c34dc7ffa88f03dc35c7f57b.zip | |
feat(ci): add M1 macOS builds
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51d75d39..4744d9f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,7 @@ jobs: - linux musl x64 - linux musl aarch64 - macos x64 + - macos aarch64 include: - build: linux musl x64 os: ubuntu-latest @@ -30,7 +31,11 @@ jobs: - build: macos x64 os: macos-latest rust: beta - target: x86_64-apple-darwin + target: x86_64-apple-darwin + - build: macos aarch64 + os: macos-latest + rust: beta + target: aarch64-apple-darwin steps: - name: Set release tag run: | @@ -64,6 +69,14 @@ jobs: - name: Install wasm-opt run: brew install binaryen + # Workaround for <https://github.com/actions/virtual-environments/issues/2557> + - name: Switch Xcode SDK + if: runner.os == 'macos' + run: | + cat <<EOF >> "$GITHUB_ENV" + SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk + EOF + - name: Build release binary run: cargo make ci-build-release ${{ matrix.target }} |
