-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (40 loc) · 1.38 KB
/
nx-cloud.yml
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
name: Nx Cloud Build
on:
workflow_dispatch: {}
schedule:
# Run periodically to freshen Nx Cloud cache.
- cron: 0 4,11,13,15 * * 1-5
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/latest' }}
env:
NX_BRANCH: ${{ github.ref }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_ACCESS_TOKEN }}
# Set to --batch to enable batch execution.
NX_BATCH_FLAG: '--batch'
jobs:
execute_blt:
runs-on: macos-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup
id: setup
uses: ./.github/actions/setup-nx
with:
os: macos
nx_restore: false # We deliberately want a clean starting state.
- name: nx build
id: build
run: |
# Non-batched builds - some TS/JS targets will fail if run with --batch, so build them unbatched first.
yarn nx run-many -p tag:no-batching -t build --parallel=3
# Batched builds.
yarn nx run-many -t build --parallel=3 --exclude all ${NX_BATCH_FLAG}
- name: nx blt
id: blt
run: |
yarn nx run blt