-
Notifications
You must be signed in to change notification settings - Fork 217
62 lines (55 loc) · 1.32 KB
/
web.yaml
File metadata and controls
62 lines (55 loc) · 1.32 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
---
name: Build NativeLink Web
on:
push:
branches: [main]
paths:
- 'web/**'
- '**/*.md'
- 'nativelink-config/**'
- 'tools/**'
- '**/*.lock'
- '**/*.nix'
pull_request:
branches: [main]
paths:
- 'web/**'
- '**/*.md'
- 'nativelink-config/**'
- 'tools/**'
- '**/*.lock'
- '**/*.nix'
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- macos-26
name: Web Build / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: >- # v6.0.2
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Prepare Worker
uses: ./.github/actions/prepare-nix
with:
nativelink_attic_token: ${{ secrets.NATIVELINK_ATTIC_TOKEN }}
- name: Test Build
if: github.event_name == 'pull_request'
working-directory: web
run: |
nix develop --fallback --impure --command bash -c "
bun install && bun run build
"
- name: Teardown Worker
uses: ./.github/actions/end-nix
if: always()
with:
nativelink_attic_token: ${{ secrets.NATIVELINK_ATTIC_TOKEN }}