diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 919e03df..374e5029 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,22 +1,22 @@ -run-name: build -on: - push: -concurrency: - group: ${{ github.ref }} - cancel-in-progress: true +name: Build +on: [ push, pull_request ] jobs: build: runs-on: ubuntu-latest strategy: matrix: - node: [ 16, 20 ] - name: Node ${{ matrix.node }} + os: [ linux, macos, windows ] + name: Build ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node }} + node-version: 18.5.0 - run: npm install - - run: npm run eslint - - run: npm run prettier-check - - run: npm run test -- --failTaskOnError --suppressPassed + - run: npm install -g pkg + - run: pkg . --targets latest-${{ matrix.os }}-x64 + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: gltf-pipeline-${{ matrix.os }} + path: gltf-pipeline*