Skip to content

Commit 261b683

Browse files
committed
test a cross-platform check
1 parent 61a5b63 commit 261b683

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Cross-platform check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
- "release/**"
9+
paths-ignore:
10+
- "*.md"
11+
- "LICENSE"
12+
pull_request:
13+
branches:
14+
- main
15+
- dev
16+
- "release/**"
17+
paths-ignore:
18+
- "*.md"
19+
- "LICENSE"
20+
21+
env:
22+
CARGO_TERM_COLOR: always
23+
SQLX_OFFLINE: "1"
24+
SCCACHE_GHA_ENABLED: "true"
25+
RUSTC_WRAPPER: "sccache"
26+
27+
jobs:
28+
check:
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
os:
33+
- macOS
34+
- Windows
35+
36+
runs-on:
37+
- self-hosted
38+
- ${{ matrix.os }}
39+
40+
defaults:
41+
run:
42+
working-directory: ./src-tauri
43+
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v6
47+
with:
48+
submodules: recursive
49+
50+
- name: Run sccache-cache
51+
uses: mozilla-actions/sccache-action@v0.0.9
52+
53+
- name: Install protoc
54+
uses: arduino/setup-protoc@v3
55+
with:
56+
repo-token: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Check compilation
59+
run: cargo check --workspace

0 commit comments

Comments
 (0)