Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Update version of Cargo.toml #4

Update version of Cargo.toml

Update version of Cargo.toml #4

Workflow file for this run

name: Build 📦
permissions:
contents: write
pull-requests: write
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- release_for: linux-arm64
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
bin: aws-sso-auth
command: build
- release_for: linux-amd64
os: ubuntu-latest
target: x86_64-unknown-linux-musl
bin: aws-sso-auth
command: build
- release_for: darwin-amd64
os: macOS-latest
target: x86_64-apple-darwin
bin: aws-sso-auth
command: build
- release_for: darwin-arm64
os: macOS-latest
target: aarch64-apple-darwin
bin: aws-sso-auth
command: build
runs-on: ${{ matrix.platform.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MUSL
if: matrix.platform.os == 'ubuntu-latest'
run: |
sudo apt-get -qq install musl-tools
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--release"
strip: true
- name: Package zip
run: |
make package ARCH=${{ matrix.platform.release_for }} TARGET=${{ matrix.platform.target }}
- name: Release
uses: softprops/action-gh-release@v1
with:
#body: '[Changelog](https://github.com/containerscrew/aws-sso-auth/blob/main/CHANGELOG.md)'
files: "*.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
append_body: true