Skip to content

Commit

Permalink
add aarch64 macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
iliazeus committed Aug 16, 2024
1 parent 297a58d commit 58f6959
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,45 @@ env:

jobs:
publish-to-github:
name: Publish to Github
runs-on: ${{matrix.os}}
name: Build
runs-on: ${{matrix.runner}}

strategy:
matrix:
include:
- build: linux
os: ubuntu-latest
- runner: ubuntu-latest
rust: nightly
target: x86_64-unknown-linux-gnu
filename: iso2god-x86_64-linux

- build: macos
os: macos-latest
- runner: macos-12
rust: nightly
target: x86_64-apple-darwin
filename: iso2god-x86_64-macos

- build: windows
os: windows-latest
- runner: macos-14
rust: nightly
target: aarch64-apple-darwin
filename: iso2god-aarch64-macos

- runner: windows-latest
rust: nightly
target: x86_64-pc-windows-gnu
filename: iso2god-x86_64-windows.exe

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 1
uses: actions/checkout@v4

- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.rustup
target
key: ${{ runner.os }}-${{ matrix.rust }}
key: ${{ matrix.rust }}-${{ matrix.target }}

- name: Install Rust
run: |
Expand All @@ -57,16 +60,14 @@ jobs:
rustup show
- name: Build
run: cargo build -Z unstable-options --release --target ${{ matrix.target }} --bin iso2god --out-dir out

- name: Rename Mac OS binary
if: ${{ matrix.os == 'macos-latest' }}
run: mv out/iso2god out/iso2god-macos
run: |
cargo build -Z unstable-options --release --target ${{ matrix.target }} --bin iso2god --artifact-dir out
mv out/* out/${{ matrix.filename }}
- name: Release
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
out/*
name: ${{ github.ref_name }}
draft: ${{ github.ref_type != 'tag' || !startsWith(github.ref_name, 'v') }}
files: out/*
fail_on_unmatched_files: false

0 comments on commit 58f6959

Please sign in to comment.