Change @irsdk-node/native to a required dependency #34
Workflow file for this run
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
| # TODO: Cache builds better. | |
| # TODO: Only build the affected packages. | |
| # TODO: Add back in lint step once toolchain is modernized. | |
| name: Check PR | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| env: | |
| CI: true | |
| NODE_VERSION: 20 | |
| jobs: | |
| build-types: | |
| name: Build @irsdk-node/types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/build-library | |
| with: | |
| package-name: "@irsdk-node/types" | |
| node-version: 20 | |
| build-native-ts: | |
| name: Build @irsdk-node/native | |
| needs: build-types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/build-library | |
| with: | |
| package-name: "@irsdk-node/native" | |
| node-version: 20 | |
| build-native-modules: | |
| name: Build @irsdk-node/native ${{ matrix.runner }} | |
| needs: build-native-ts | |
| strategy: | |
| matrix: | |
| runner: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/build-native-library | |
| with: | |
| package-name: "@irsdk-node/native" | |
| node-version: 20 | |
| artifact-dir: ./packages/irsdk-node-native/prebuilds | |
| build-core-lib: | |
| needs: | |
| - build-types | |
| - build-native-ts | |
| name: Build irsdk-node | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/build-library | |
| with: | |
| package-name: "irsdk-node" | |
| node-version: 20 |