From a0202c0f591efc3a5f50c26178bac2bd433326a8 Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 20 Mar 2024 12:58:02 +0100 Subject: [PATCH 1/4] Create node.js.yml --- .github/workflows/node.js.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..22fdfc6 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,27 @@ +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + command: ['npm build linux', 'npm build windows', 'npm build mac'] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + - run: npm ci + - name: Build + run: ${{ matrix.command }} From d78ed53977f8472bb45d37d5e6c447694ec0a55e Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 20 Mar 2024 13:02:05 +0100 Subject: [PATCH 2/4] Update node.js.yml --- .github/workflows/node.js.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 22fdfc6..43bf51c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -13,9 +13,13 @@ jobs: strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - command: ['npm build linux', 'npm build windows', 'npm build mac'] - + include: + - os: ubuntu-latest + build-command: 'npm run "build linux"' + - os: windows-latest + build-command: 'npm run "build windows"' + - os: macos-latest + build-command: 'npm run "build mac"' steps: - uses: actions/checkout@v4 - name: Use Node.js From 1a032993fafac7aaf6978327e7fe67849c8c1afb Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 20 Mar 2024 13:06:16 +0100 Subject: [PATCH 3/4] Update node.js.yml --- .github/workflows/node.js.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 43bf51c..bd52792 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,10 +1,6 @@ name: Node.js CI -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [push, pull_request] jobs: build: @@ -20,12 +16,13 @@ jobs: build-command: 'npm run "build windows"' - os: macos-latest build-command: 'npm run "build mac"' + steps: - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '20' + cache: 'npm' - run: npm ci - name: Build - run: ${{ matrix.command }} + run: ${{ matrix.build-command }} From 15412ea860e35a6f4eed9290e6f5d3bfe04c61e4 Mon Sep 17 00:00:00 2001 From: Woody Date: Wed, 20 Mar 2024 13:10:54 +0100 Subject: [PATCH 4/4] Update node.js.yml --- .github/workflows/node.js.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index bd52792..615659a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,3 +26,10 @@ jobs: - run: npm ci - name: Build run: ${{ matrix.build-command }} + - uses: actions/upload-artifact@v4 + with: + name: firmware-${{ matrix.os }} + path: | + dist/WLED-*.exe + dist/WLED-*.deb + dist/WLED-*.dmg