-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.28 KB
/
Copy pathci.yml
File metadata and controls
51 lines (40 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Linux build dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \
libayatana-appindicator3-dev librsvg2-dev libxdo-dev libssl-dev patchelf
# macos-latest runners are Apple Silicon; also check the Intel target.
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ runner.os == 'macOS' && 'x86_64-apple-darwin' || '' }}
- uses: swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: npm ci
# tauri::generate_context! needs ../dist to exist at compile time.
- run: npm run build
- run: cargo check --locked
working-directory: src-tauri
- run: cargo test --locked
working-directory: src-tauri
- if: runner.os == 'macOS'
run: cargo check --locked --target x86_64-apple-darwin
working-directory: src-tauri