From 0bafe5a766aee50ac39fd081f45ff194b45317a0 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Tue, 13 Feb 2024 22:20:03 +1100 Subject: [PATCH] Fix workflow syntax --- .github/workflows/build.yml | 98 ++++++++++++++++++------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f92fcf..773aaa3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Attempt to build binaries for Windows (64-bit), linux (64-bit) and macos (x86-64) +name: Build binaries for Windows (64-bit), linux (64-bit) and macos (x86-64) on: push: branches: [ main ] @@ -8,62 +8,62 @@ jobs: name: Run npm on Ubuntu runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: '19.x' - - name: Install Electron and build - run: | - npm install electron-rebuild -g - npm install electron-builder -g - npm install - npm run package-linux - - name: Save .appimage as artefact - uses: actions/upload-artifact@v4 - with: - name: Artefact for linux build - path: dist + - uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '19.x' + - name: Install Electron and build + run: | + npm install electron-rebuild -g + npm install electron-builder -g + npm install + npm run package-linux + - name: Save .appimage as artefact + uses: actions/upload-artifact@v4 + with: + name: Artefact for linux build + path: dist Build-for-mac: name: Run npm on x64 macos runs-on: macos-12 steps: - - uses: actions/checkout@v4 - - name: Setup Node, Electron and built - uses: actions/setup-node@v3 - with: - node-version: '19.x' - - name: Install Electron and build - run: | - npm install electron-rebuild -g - npm install electron-builder -g - npm install - npm run package-mac - - name: Save .dmg as artefact - uses: actions/upload-artifact@v4 - with: - name: Artefact for Mac build - path: dist + - uses: actions/checkout@v4 + - name: Setup Node, Electron and built + uses: actions/setup-node@v3 + with: + node-version: '19.x' + - name: Install Electron and build + run: | + npm install electron-rebuild -g + npm install electron-builder -g + npm install + npm run package-mac + - name: Save .dmg as artefact + uses: actions/upload-artifact@v4 + with: + name: Artefact for Mac build + path: dist Build-for-win: name: Run npm on x64 Windows runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - name: Setup Node, Electron and built - uses: actions/setup-node@v3 - with: - node-version: '19.x' - - name: Install Electron and build - run: | - npm install electron-rebuild -g - npm install electron-builder -g - npm install - npm run package-mac - - name: Save .exe as artefact - uses: actions/upload-artifact@v4 - with: - name: Artefact for Win build - path: dist + - uses: actions/checkout@v4 + - name: Setup Node, Electron and built + uses: actions/setup-node@v3 + with: + node-version: '19.x' + - name: Install Electron and build + run: | + npm install electron-rebuild -g + npm install electron-builder -g + npm install + npm run package-mac + - name: Save .exe as artefact + uses: actions/upload-artifact@v4 + with: + name: Artefact for Win build + path: dist