Skip to content

Commit

Permalink
chore: action
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jul 2, 2024
1 parent aa97012 commit dca7838
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,21 @@ jobs:

build-tauri:
needs: create-release
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
Expand All @@ -65,33 +76,26 @@ jobs:
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Node.js enable corepack
run: corepack enable

- name: Node.js setup
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: lts/*
cache: 'yarn'

- name: Rust setup
uses: actions-rs/toolchain@v1
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
working-directory: "src-tauri"
workspaces: "src-tauri -> target"

- name: Install deps
uses: bahmutov/npm-install@v1
Expand Down

0 comments on commit dca7838

Please sign in to comment.