ci: use both macOS aarch64 and AMD64 runners #37
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: App Builder | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
release: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-13, macos-14, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# for projects that use labels and PRs: https://github.com/mikepenz/release-changelog-builder-action | |
- name: Build Changelog | |
id: build_changelog | |
run: echo "changelog=- ADD CHANGELOG" >> $GITHUB_OUTPUT | |
- name: Node.js setup | |
uses: actions/setup-node@v4 | |
# NOTE: enterprise developers may hard code a version | |
with: | |
node-version: 22.1 | |
cache: 'npm' | |
- name: Rust setup | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './src-tauri -> target' | |
- name: Install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | |
- name: Install app dependencies and build web | |
run: npm i | |
- name: Build the app | |
uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
with: | |
# tauri-action replaces \_\_VERSION\_\_ with the app version | |
tagName: ${{ github.ref_name }} | |
releaseName: "[Alpha] Statusify v__VERSION__" | |
releaseBody: | | |
${{steps.build_changelog.outputs.changelog}} | |
releaseDraft: true | |
prerelease: false |