Skip to content

Commit 14b1990

Browse files
committed
feat: Switch to official tauri-action
1 parent 3225985 commit 14b1990

File tree

2 files changed

+18
-36
lines changed

2 files changed

+18
-36
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: [ubuntu-22.04, windows-latest]
30+
# todo we might want to bump this
3031
node-version: [18.x]
3132
include:
32-
- platform: ubuntu-22.04
33-
rust_target: x86_64-unknown-linux-gnu
34-
- platform: windows-latest
35-
rust_target: x86_64-pc-windows-msvc
36-
# - platform: macos-latest
37-
# rust_target: x86_64-apple-darwin
38-
# - platform: macos-latest
39-
# rust_target: aarch64-apple-darwin
33+
# - platform: 'macos-latest'
34+
# args: '--target aarch64-apple-darwin'
35+
# - platform: 'macos-latest'
36+
# args: '--target x86_64-apple-darwin'
37+
- platform: 'ubuntu-22.04'
38+
args: ''
39+
- platform: 'windows-latest'
40+
args: ''
4041
runs-on: ${{ matrix.os }}
4142
steps:
4243
- name: Checkout repository
@@ -48,18 +49,11 @@ jobs:
4849
uses: actions/setup-node@v4
4950
with:
5051
node-version: ${{ matrix.node-version }}
51-
# node-version-file: '.nvmrc'
5252

53-
- name: 'Setup Rust'
54-
uses: actions-rs/toolchain@v1
53+
- name: install Rust stable
54+
uses: dtolnay/rust-toolchain@stable
5555
with:
56-
default: true
57-
override: true
58-
profile: minimal
59-
toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
60-
target: ${{ matrix.rust_target }}
61-
62-
- uses: Swatinem/rust-cache@v2
56+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
6357

6458
- name: Install dependencies (ubuntu only)
6559
if: matrix.os == 'ubuntu-22.04'
@@ -80,24 +74,25 @@ jobs:
8074
run: |
8175
brew install pnpm
8276
83-
- name: Install dependencies (PNPM)
77+
- name: Install frontend dependencies (PNPM)
8478
run: pnpm install --no-frozen-lockfile
8579

8680
- name: Generate Local Plugins (PNPM)
8781
run: pnpm run specta:gen
8882

89-
- uses: JonasKruckenberg/tauri-build@v1.2.3
83+
- uses: tauri-apps/tauri-action@v0.6.1
9084
id: tauri_build
9185
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9287
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
9388
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
9489
with:
95-
target: ${{ matrix.platform.rust_target }}
90+
args: ${{ matrix.args }}
9691

9792
- uses: actions/upload-artifact@v4
9893
with:
9994
name: production-files-${{ matrix.os }}
100-
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}"
95+
path: "${{ join(fromJSON(steps.tauri_build.outputs.artifactPaths), '\n') }}"
10196

10297
deploy:
10398
runs-on: ubuntu-latest
@@ -119,7 +114,7 @@ jobs:
119114
uses: actions/setup-node@v4
120115
with:
121116
node-version: 20
122-
# remember to update the conventionalcommits version when updating semantic relese
117+
# remember to update the conventionalcommits version when updating semantic release
123118
- run: npm install -g conventional-changelog-conventionalcommits@8
124119
- run: npm install -g semantic-release@v24.1.2
125120
- run: npm install -g @semantic-release/exec

0 commit comments

Comments
 (0)