Skip to content

Commit 8d436cc

Browse files
committed
Added some more actions for the app
1 parent 7b41854 commit 8d436cc

File tree

2 files changed

+53
-12
lines changed

2 files changed

+53
-12
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
branches: '*'
77
workflow_dispatch:
88

9-
env:
10-
APP_NAME: "Idea Checklist"
11-
129
jobs:
1310
publish-tauri:
1411
permissions:
@@ -17,11 +14,11 @@ jobs:
1714
fail-fast: false
1815
matrix:
1916
include:
20-
- platform: 'macos-latest' # for Arm based macs (M1 and above).
17+
- platform: 'macos-latest'
2118
args: '--target aarch64-apple-darwin'
22-
- platform: 'macos-latest' # for Intel based macs.
19+
- platform: 'macos-latest'
2320
args: '--target x86_64-apple-darwin'
24-
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
21+
- platform: 'ubuntu-22.04'
2522
args: ''
2623
- platform: 'windows-latest'
2724
args: ''
@@ -38,26 +35,23 @@ jobs:
3835
- name: install Rust stable
3936
uses: dtolnay/rust-toolchain@stable
4037
with:
41-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
4238
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4339

4440
- name: install dependencies (ubuntu only)
4541
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
4642
run: |
4743
sudo apt-get update
4844
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
49-
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
50-
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
5145
5246
- name: install frontend dependencies
53-
run: npm install # change this to npm, pnpm or bun depending on which one you use.
47+
run: npm install
5448

5549
- uses: tauri-apps/tauri-action@v0
5650
env:
5751
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5852
with:
59-
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
60-
releaseName: 'App v__VERSION__'
53+
tagName: idea-checklist-v__VERSION__
54+
releaseName: 'Idea Checklist v__VERSION__'
6155
releaseBody: 'See the assets to download this version and install.'
6256
releaseDraft: true
6357
prerelease: false

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "Test Build"
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
test-tauri:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
include:
11+
- platform: "macos-latest"
12+
args: "--target aarch64-apple-darwin"
13+
- platform: "macos-latest"
14+
args: "--target x86_64-apple-darwin"
15+
- platform: "ubuntu-22.04"
16+
args: ""
17+
- platform: "windows-latest"
18+
args: ""
19+
20+
runs-on: ${{ matrix.platform }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: setup node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: lts/*
28+
29+
- name: install Rust stable
30+
uses: dtolnay/rust-toolchain@stable
31+
with:
32+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
33+
34+
- name: install dependencies (ubuntu only)
35+
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
39+
40+
- name: install frontend dependencies
41+
run: npm install
42+
43+
- uses: tauri-apps/tauri-action@v0
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
with:
47+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)