Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mac runners #4913

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
use_llvm: true
build_wasm: true
- build: macos-x64
os: macos-11
os: macos-latest
llvm_url: 'https://github.com/wasmerio/llvm-custom-builds/releases/download/15.x/llvm-darwin-amd64.tar.xz'
artifact_name: 'wasmer-darwin-amd64'
cross_compilation_artifact_name: 'cross_compiled_from_mac'
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
if: matrix.use_sccache != true
- name: Install LLVM (macOS Apple Silicon)
if: matrix.os == 'macos-11.0' && !matrix.llvm_url
if: matrix.os == 'macos-latest' && !matrix.llvm_url
run: |
brew install llvm
- name: Install LLVM
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
# using gnu-tar is a workaround for https://github.com/actions/cache/issues/403
brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
if: matrix.os == 'macos-latest' || matrix.os == 'macos-11.0'
if: matrix.os == 'macos-latest'
- uses: actions/cache@v2
with:
path: |
Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:

darwin_aarch64_jsc:
name: macOS aarch64 (JSC)
runs-on: macos-11.0
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:

darwin_x86_64_jsc:
name: macOS x86_64 (JSC)
runs-on: macos-11.0
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,13 @@ jobs:
},
{
build: macos-x64,
os: macos-11,
os: macos-latest,
target: x86_64-apple-darwin,
llvm_url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz'
},
{
build: macos-arm,
os: macos-11,
os: macos-latest,
target: aarch64-apple-darwin,
},
{
Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
# using gnu-tar is a workaround for https://github.com/actions/cache/issues/403
brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
if: matrix.metadata.os == 'macos-latest' || matrix.metadata.os == 'macos-11.0'
if: matrix.metadata.os == 'macos-latest'
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand Down Expand Up @@ -454,7 +454,7 @@ jobs:
mkdir -p package/winsdk
cp -r /tmp/winsdk/* package/winsdk
- name: Install LLVM (macOS Apple Silicon)
if: matrix.metadata.os == 'macos-11.0' && !matrix.metadata.llvm_url
if: matrix.metadata.os == 'macos-latest' && !matrix.metadata.llvm_url
run: |
brew install llvm
- name: Install LLVM
Expand Down Expand Up @@ -596,7 +596,7 @@ jobs:
},
{
build: macos-x64,
os: macos-11,
os: macos-latest,
target: x86_64-apple-darwin,
exe: '',
llvm_url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz'
Expand Down Expand Up @@ -643,7 +643,7 @@ jobs:
# using gnu-tar is a workaround for https://github.com/actions/cache/issues/403
brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
if: matrix.metadata.os == 'macos-latest' || matrix.metadata.os == 'macos-11.0'
if: matrix.metadata.os == 'macos-latest'
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -652,7 +652,7 @@ jobs:
- name: Install Nextest
uses: taiki-e/install-action@nextest
- name: Install LLVM (macOS Apple Silicon)
if: matrix.metadata.os == 'macos-11.0' && !matrix.metadata.llvm_url
if: matrix.metadata.os == 'macos-latest' && !matrix.metadata.llvm_url
run: |
brew install llvm
- name: Install LLVM
Expand Down Expand Up @@ -710,12 +710,12 @@ jobs:
target: x86_64-unknown-linux-gnu
llvm_url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz'
- build: macos-x64
os: macos-11
os: macos-latest
target: x86_64-apple-darwin
llvm_url: 'https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/clang+llvm-15.0.7-x86_64-apple-darwin21.0.tar.xz'
# we only build the integration-test CLI, we don't run tests
- build: macos-arm
os: macos-11
os: macos-latest
target: aarch64-apple-darwin,
- build: linux-musl
target: x86_64-unknown-linux-musl
Expand Down
Loading