-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use tauri-action & create empty dist
- Loading branch information
1 parent
eb07a66
commit 9f615f2
Showing
1 changed file
with
41 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ concurrency: | |
|
||
jobs: | ||
cargo-checks: | ||
name: cargo checks fmt, clippy, check) | ||
name: cargo checks (fmt, clippy, check) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -83,37 +83,45 @@ jobs: | |
cargo install cargo-machete | ||
cargo machete | ||
tauri-build: | ||
name: tauri-build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install dependencies (linux) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends --assume-yes \ | ||
libwebkit2gtk-4.1-dev \ | ||
libappindicator3-dev \ | ||
librsvg2-dev \ | ||
patchelf \ | ||
libprotobuf-dev \ | ||
protobuf-compiler | ||
tauri-test-build: | ||
strategy: | ||
fail-fast: true | ||
name: tauri-build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: create empty dist dir | ||
run: | | ||
mkdir dist | ||
- name: install dependencies (linux) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends --assume-yes \ | ||
libwebkit2gtk-4.1-dev \ | ||
libappindicator3-dev \ | ||
librsvg2-dev \ | ||
patchelf \ | ||
libprotobuf-dev \ | ||
protobuf-compiler | ||
- name: install dependencies (linux/OpenCL) | ||
run: | | ||
sudo apt-get install --no-install-recommends --assume-yes \ | ||
opencl-headers \ | ||
ocl-icd-opencl-dev | ||
- name: install dependencies (linux/OpenCL) | ||
run: | | ||
sudo apt-get install --no-install-recommends --assume-yes \ | ||
opencl-headers \ | ||
ocl-icd-opencl-dev | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: 'npm' | ||
- name: Install dependencies (node) | ||
run: npm ci | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: swatinem/[email protected] | ||
with: | ||
workspaces: './src-tauri -> target' | ||
- name: NPM tauri build | ||
run: npm run tauri build -- --ci | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: 'npm' | ||
- name: Install dependencies (node) | ||
run: npm ci | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: swatinem/[email protected] | ||
with: | ||
workspaces: './src-tauri -> target' | ||
# If tagName and releaseId are omitted tauri-action will only build the app and won't try to upload any assets. | ||
- name: test tauri build | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |