Build All #11
This file contains hidden or 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 All | |
on: | |
workflow_dispatch: | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_NOLOGO: 1 | |
node: 20 | |
jobs: | |
build-18: | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
name: build node-18 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Node 18 | |
uses: ./.github/actions/build-node | |
with: | |
node: 18 | |
os: ${{ matrix.os }} | |
build-20: | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
name: build node-20 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Node 20 | |
uses: ./.github/actions/build-node | |
with: | |
node: 20 | |
os: ${{ matrix.os }} | |
build-22: | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
name: build node-22 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Node 22 | |
uses: ./.github/actions/build-node | |
with: | |
node: 22 | |
os: ${{ matrix.os }} | |
build-24: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
name: build node-24 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Node 24 | |
uses: ./.github/actions/build-node | |
with: | |
node: 24 | |
os: ${{ matrix.os }} | |
upload-artifacts: | |
runs-on: ubuntu-latest | |
needs: [test-18, test-20, test-22, test-24] | |
# needs: [build-20, build-22] | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
name: upload artifcts | |
steps: | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
if: success() | |
with: | |
path: release | |
pattern: win32-edge-js* | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: release | |
pattern: darwin-edge-js* | |
- name: Upload artifacts | |
uses: actions/upload-artifact/merge@v4 | |
if: success() | |
with: | |
name: edge-js | |
test-18: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, windows-11-arm, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
needs: [build-18] | |
name: test node-18 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test build | |
uses: ./.github/actions/test-build | |
with: | |
node: 18 | |
os: ${{ matrix.os }} | |
test-20: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, windows-11-arm, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
needs: [build-20] | |
name: test node-20 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test build | |
uses: ./.github/actions/test-build | |
with: | |
node: 20 | |
os: ${{ matrix.os }} | |
test-22: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, windows-11-arm, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
needs: [build-22] | |
name: test node-22 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test build | |
uses: ./.github/actions/test-build | |
with: | |
node: 22 | |
os: ${{ matrix.os }} | |
test-24: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2025, windows-11-arm, macos-13, macos-15] | |
runs-on: ${{ matrix.os }} | |
needs: [build-24] | |
name: test node-24 ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Test build | |
uses: ./.github/actions/test-build | |
with: | |
node: 24 | |
os: ${{ matrix.os }} | |