This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
Add target for linux aarch64 #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release 📦 | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup MUSL | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
rustup target add x86_64-unknown-linux-musl | |
rustup target add aarch64-unknown-linux-gnu | |
sudo apt-get -qq install musl-tools | |
- name: Build for Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
make release-linux | |
- name: Build for macOS | |
if: matrix.os == 'macOS-latest' | |
run: make release-mac | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: '[Changelog](https://github.com/containerscrew/aws-sso-auth/blob/main/CHANGELOG.md)' | |
files: "*.zip\n*.rpm" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |