Run build workflow in CI on the windows & macos also #1889
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: {} | |
push: | |
branches: [develop, master] | |
# develop pushes and repository_dispatch handled in build_develop.yaml | |
env: | |
# These must be set for fetchdep.sh to get the right branch | |
REPOSITORY: ${{ github.repository }} | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
jobs: | |
build: | |
name: "Build" | |
# We build on all 3 platforms to ensure we don't have any OS-specific build incompatibilities | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
isDevelop: | |
- ${{ github.event_name == 'push' && github.ref_name == 'develop' }} | |
# Skip the ubuntu-latest build for the develop branch as the dedicated CD build_develop workflow handles that | |
exclude: | |
- isDevelop: true | |
image: ubuntu-latest | |
runs-on: ${{ matrix.image }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
- name: Install Dependencies | |
run: "./scripts/layered.sh" | |
- name: "[Windows] Add bin to path" | |
if: matrix.image == 'windows-latest' | |
run: echo "${{ github.workspace }}/node_modules/.bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Build | |
run: "yarn build" |