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 c117c1f commit b7556eb
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 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-x86_64-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,15 @@ 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
# if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
uses: softprops/action-gh-release@v2
with:
files: |
out/*
name: test
draft: true
files: out/*
fail_on_unmatched_files: false

0 comments on commit b7556eb

Please sign in to comment.