-
Notifications
You must be signed in to change notification settings - Fork 140
78 lines (75 loc) · 2.33 KB
/
ci.yml
File metadata and controls
78 lines (75 loc) · 2.33 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: ci
on: [pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: '.node-version'
cache: pnpm
- run: pnpm install
- run: pnpm run lint
- run: pnpm run test
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: setup pnpm
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: '.node-version'
cache: pnpm
- uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
bazelrc: |
# Limit resources for CI runners (ubuntu-latest: 7GB RAM, 2 CPUs)
build --local_ram_resources=4096
build --local_cpu_resources=2
build --jobs=2
build --discard_analysis_cache
build --nokeep_state_after_build
- run: pnpm install
- name: Build
run: pnpm run build
env:
_JAVA_OPTIONS: -Xms512m -Xmx2g
NODE_OPTIONS: --max-old-space-size=4096
# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - uses: actions/setup-node@v4
# with:
# node-version-file: .node-version
# cache: yarn
# - run: yarn install
# - run: yarn build
# shell: pwsh
# build-macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - uses: actions/setup-node@v4
# with:
# node-version-file: '.node-version'
# cache: yarn
# - run: yarn install
# - run: yarn build