Skip to content

Release new version #79

Release new version

Release new version #79

Workflow file for this run

name: Test release new version
on:
release:
types: [created]
permissions:
contents: write
jobs:
upload-linux-assets:
strategy:
matrix:
include:
# Ubuntu
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
container: ubuntu:20.04
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
container: ubuntu:20.04
runs-on: ${{ matrix.os }}
container:
image: ${{ matrix.container }}
options: --privileged
steps:
- name: Config env
run: |
apt-get update
apt-get --no-install-recommends install -y build-essential ca-certificates curl git jq wget zip
mkdir -p -m 755 /etc/apt/keyrings
wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
apt-get update
apt-get install gh -y
git config --global --add safe.directory $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- name: Install Stable + Rustfmt + Clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
# Set the current SHA as the version so that it's exposed on the server.
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- name: Run release
uses: ./.github/.release-steps
with:
target: ${{ matrix.target }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
upload-other-assets:
strategy:
matrix:
include:
# Mac OS
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Stable + Rustfmt + Clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Run release
uses: ./.github/.release-steps
with:
target: ${{ matrix.target }}
gh_token: ${{ secrets.GITHUB_TOKEN }}