Add m1 to build matrix and release (#3983)

* Add m1 to release process

This will create a pre-compiled binary for m1 macs and adds
a link to review embark studios CI for verification.

* remove test for macos arm

Tests will not succeed for macos arm until GitHub provides a an m1 hosted runner.

Co-authored-by: Bailey Hayes <bhayes@singlestore.com>
This commit is contained in:
Bailey Hayes
2022-04-06 20:40:04 -04:00
committed by GitHub
parent d147802d51
commit 76f7cde673
3 changed files with 11 additions and 0 deletions

View File

@@ -215,6 +215,7 @@ jobs:
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
# defaults to x86_64-apple-darwin
- os: macos-latest - os: macos-latest
- os: windows-2019 - os: windows-2019
- os: windows-2019 - os: windows-2019
@@ -390,6 +391,9 @@ jobs:
os: ubuntu-latest os: ubuntu-latest
- build: x86_64-macos - build: x86_64-macos
os: macos-latest os: macos-latest
- build: aarch64-macos
os: macos-latest
target: aarch64-apple-darwin
- build: x86_64-windows - build: x86_64-windows
os: windows-latest os: windows-latest
- build: x86_64-mingw - build: x86_64-mingw

View File

@@ -84,6 +84,9 @@ jobs:
PRs to the \`main\` branch to update [RELEASES.md] and then backport PRs to the \`main\` branch to update [RELEASES.md] and then backport
these PRs to the [release branch][branch]. these PRs to the [release branch][branch].
Maintainers should also review that aarch64-apple-darwin builds
are passing via [embark's CI](https://buildkite.com/embark-studios/wasmtime-aarch64-apple-darwin).
Another automated PR will be made in roughly 2 weeks time when for Another automated PR will be made in roughly 2 weeks time when for
the actual release itself. the actual release itself.

View File

@@ -59,6 +59,10 @@ elif [ "$platform" = "x86_64-macos" ]; then
install_name_tool -id "@rpath/libwasmtime.dylib" target/release/libwasmtime.dylib install_name_tool -id "@rpath/libwasmtime.dylib" target/release/libwasmtime.dylib
cp target/release/wasmtime tmp/$bin_pkgname cp target/release/wasmtime tmp/$bin_pkgname
cp target/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib cp target/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib
elif [ "$platform" = "aarch64-macos" ]; then
install_name_tool -id "@rpath/libwasmtime.dylib" target/aarch64-apple-darwin/release/libwasmtime.dylib
cp target/aarch64-apple-darwin/release/wasmtime tmp/$bin_pkgname
cp target/aarch64-apple-darwin/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib
elif [ "$target" = "" ]; then elif [ "$target" = "" ]; then
cp target/release/wasmtime tmp/$bin_pkgname cp target/release/wasmtime tmp/$bin_pkgname
cp target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib cp target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib