Skip to content

Commit

Permalink
Update build-artifacts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasyzhjk authored Apr 30, 2024
1 parent 1a2d4bd commit 24a257a
Showing 1 changed file with 24 additions and 21 deletions.
45 changes: 24 additions & 21 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths:
- '.github/workflows/build-artifacts.yml'
- '**'
workflow_dispatch:

jobs:
build-artifacs:
Expand All @@ -16,39 +17,41 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
platform: [ubuntu-20.04, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v4
- name: install nightly toolchain
uses: actions-rs/toolchain@v1
with:
default: true
override: true
toolchain: nightly
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
- name: install libs (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev libusb-1.0-0
- name: Rust setup
uses: dtolnay/rust-toolchain@nightly

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
node-version: 20
workspaces: './src-tauri -> target'

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm' # Set this to npm, yarn or pnpm.

- name: install libs (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0 libusb-1.0-0
- name: install deps
working-directory: ./
run: |
pnpm install --no-frozen-lockfile
- name: Install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: pnpm install --no-frozen-lockfile # Change this to npm, yarn or pnpm.

- name: build artifacts
working-directory: ./
Expand Down

0 comments on commit 24a257a

Please sign in to comment.