2022-07-15 15:53:21 +02:00
|
|
|
name: Build
|
2022-05-16 16:23:44 +02:00
|
|
|
on:
|
2022-12-09 13:28:29 +01:00
|
|
|
pull_request: {}
|
|
|
|
push:
|
2023-10-13 15:38:51 +02:00
|
|
|
branches: [develop, master]
|
2024-01-08 13:35:42 +01:00
|
|
|
merge_group:
|
|
|
|
types: [checks_requested]
|
2022-05-16 16:23:44 +02:00
|
|
|
# develop pushes and repository_dispatch handled in build_develop.yaml
|
|
|
|
env:
|
2022-12-09 13:28:29 +01:00
|
|
|
# These must be set for fetchdep.sh to get the right branch
|
|
|
|
REPOSITORY: ${{ github.repository }}
|
|
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
2024-11-20 16:44:02 +01:00
|
|
|
permissions: {} # No permissions required
|
2022-05-16 16:23:44 +02:00
|
|
|
jobs:
|
2022-12-09 13:28:29 +01:00
|
|
|
build:
|
2023-10-13 15:38:51 +02:00
|
|
|
name: "Build on ${{ matrix.image }}"
|
|
|
|
# We build on all 3 platforms to ensure we don't have any OS-specific build incompatibilities
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
image:
|
2024-10-17 12:10:32 +02:00
|
|
|
- ubuntu-24.04
|
|
|
|
- windows-2022
|
|
|
|
- macos-14
|
2023-10-13 15:38:51 +02:00
|
|
|
isDevelop:
|
|
|
|
- ${{ github.event_name == 'push' && github.ref_name == 'develop' }}
|
2024-10-17 12:10:32 +02:00
|
|
|
# Skip the ubuntu-24.04 build for the develop branch as the dedicated CD build_develop workflow handles that
|
2023-10-13 15:38:51 +02:00
|
|
|
exclude:
|
|
|
|
- isDevelop: true
|
2024-10-17 12:10:32 +02:00
|
|
|
image: ubuntu-24.04
|
2023-10-13 15:38:51 +02:00
|
|
|
runs-on: ${{ matrix.image }}
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
2022-12-09 13:28:29 +01:00
|
|
|
steps:
|
2023-09-05 19:31:32 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-16 16:23:44 +02:00
|
|
|
|
2023-10-31 19:42:07 +01:00
|
|
|
- uses: actions/setup-node@v4
|
2022-12-09 13:28:29 +01:00
|
|
|
with:
|
|
|
|
cache: "yarn"
|
2024-07-04 15:26:58 +02:00
|
|
|
node-version: "lts/*"
|
2022-05-16 16:23:44 +02:00
|
|
|
|
2023-10-18 18:26:21 +02:00
|
|
|
# Workaround for yarn install timeouts, especially on Windows
|
|
|
|
- run: yarn config set network-timeout 300000
|
|
|
|
|
2022-12-09 13:28:29 +01:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: "./scripts/layered.sh"
|
2022-05-16 16:23:44 +02:00
|
|
|
|
2022-12-09 13:28:29 +01:00
|
|
|
- name: Build
|
|
|
|
run: "yarn build"
|