Skip to content

Commit

Permalink
Add x86_64 MacOS runner (anza-xyz#86)
Browse files Browse the repository at this point in the history
* Add x86_64 runner

* Adjust ninja install
  • Loading branch information
LucasSte committed Jan 6, 2025
1 parent c59d468 commit 35dc267
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ jobs:
rust: stable
tar: osx
out_dir: out
- target: x86_64-apple-darwin
arch: x86_64
os: macos-13
ninja_file: ninja-mac.zip
ninja_sha: 482ecb23c59ae3d4f158029112de172dd96bb0e97549c4b1ca32d8fad11f873e
ninja_dir: /usr/local/bin
ninja_sudo: sudo
rust: stable
tar: osx
out_dir: out
- target: x86_64-pc-windows-msvc
arch: x86_64
os: windows-latest
Expand All @@ -53,14 +63,15 @@ jobs:
- uses: actions/checkout@v1
- name: Install coreutils and swig
run: |
brew update && brew install coreutils && brew install swig
if: matrix.os == 'macos-latest'
brew update && brew install coreutils swig ninja
if: matrix.tar == 'osx'
shell: bash
- name: Install Ninja
run: |
curl -L -O "https://github.com/ninja-build/ninja/releases/download/v1.11.1/${{ matrix.ninja_file }}" && \
echo "${{ matrix.ninja_sha }} ${{ matrix.ninja_file }}" | sha256sum -c && \
${{ matrix.ninja_sudo }} unzip ${{ matrix.ninja_file }} -d ${{ matrix.ninja_dir }} && rm ${{ matrix.ninja_file }}
if: matrix.tar != 'osx'
shell: bash
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit 35dc267

Please sign in to comment.