Skip to content

add aarch64 builds

add aarch64 builds #16

Workflow file for this run

name: Release
on:
push:
tags:
- v*
branches:
- ci-*
- master
env:
CARGO_TERM_COLOR: always
jobs:
publish-to-github:
name: Build
runs-on: ${{matrix.arch}}-${{matrix.os}}
strategy:
matrix:
include:
- build: linux
os: ubuntu-latest
arch: x86_64
rust: nightly
target: x86_64-unknown-linux-gnu
- build: linux
os: ubuntu-latest
arch: aarch64
rust: nightly
target: aarch64-unknown-linux-gnu
- build: macos
os: macos-latest
arch: x86_64
rust: nightly
target: x86_64-apple-darwin
- build: macos
os: macos-latest
arch: aarch64
rust: nightly
target: aarch64-apple-darwin
- build: windows
os: windows-latest
arch: x86_64
rust: nightly
target: x86_64-pc-windows-gnus
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.rustup
target
key: ${{ runner.arch }}-${{ runner.os }}-${{ matrix.rust }}
- name: Install Rust
run: |
rustup default ${{ matrix.rust }}
rustup target add ${{ matrix.target }}
rustup show
- name: Build
run: |
cargo build -Z unstable-options --release --target ${{ matrix.target }} --bin iso2god --out-dir out/${{matrix.target}}
- name: Release
# if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
uses: softprops/action-gh-release@v2
with:
name: test
draft: true
files: out/*
fail_on_unmatched_files: false