From 4b6869ab7a89c4410158f8bf9dc92aa4f145ed9a Mon Sep 17 00:00:00 2001 From: Danil Bubnov Date: Mon, 29 Jan 2024 15:49:16 +0300 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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*