name: cd
on:
release:
types: [published]
permissions:
contents: read
jobs:
upload-binaries:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
if: github.repository == 'major/fez'
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
- target: aarch64-unknown-linux-gnu
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 with:
persist-credentials: false
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 with:
toolchain: "1.92"
targets: ${{ matrix.target }}
- name: Build and upload fez binary
uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 with:
bin: fez
target: ${{ matrix.target }}
archive: fez-$tag-$target
token: ${{ secrets.GITHUB_TOKEN }}