Skip to content

Commit

Permalink
ci: use tauri-action & create empty dist
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Nov 21, 2024
1 parent eb07a66 commit 9f615f2
Showing 1 changed file with 41 additions and 33 deletions.
74 changes: 41 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 9f615f2

Please sign in to comment.