Release #18
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: | |
release: | |
types: [created] | |
jobs: | |
release: | |
name: release ${{ matrix.target }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- target: x86_64-pc-windows-gnu | |
archive: zip | |
- target: x86_64-unknown-linux-musl | |
archive: zip | |
- target: x86_64-apple-darwin | |
archive: zip | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install UI dependencies | |
run: | | |
cd ui | |
npm install | |
- name: Build UI | |
run: | | |
cd ui | |
npm run build | |
- name: Install CC Dependencies | |
run: | | |
sudo apt update | |
sudo apt install build-essential gcc make pkg-config gcc-multilib g++-multilib musl-dev musl-tools cmake | |
- name: Compile and release | |
uses: rust-build/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
RUSTTARGET: ${{ matrix.target }} | |
ARCHIVE_TYPES: ${{ matrix.archive }} | |
MINIFY: true | |
TOOLCHAIN_VERSION: 1.74 |