-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.76 KB
/
ci.yml
File metadata and controls
64 lines (57 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
pull_request:
branches: [main]
paths:
- "packages/**"
push:
branches: [main]
paths:
- "packages/**"
permissions:
contents: read
jobs:
build-webview-macos:
name: Build Native macOS (smoke test)
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v5
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
packages/webview/target/
key: cargo-macos-arm64-${{ hashFiles('packages/webview/Cargo.lock') }}
restore-keys: cargo-macos-arm64-
- run: bun run build
working-directory: packages/webview
- name: Test packages
run: bun run test
build-webview-windows:
name: Build Native Windows (smoke test)
if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v5
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
packages/webview/target/
key: cargo-windows-x64-${{ hashFiles('packages/webview/Cargo.lock') }}
restore-keys: cargo-windows-x64-
- run: bun run build
working-directory: packages/webview
- name: Test packages
run: bun run test