From 0a872e7023d8bbcf0bea84ca3ed1dd6162b8c082 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Sun, 16 May 2021 21:03:04 +0200 Subject: [PATCH] build: separate build configurations --- .../workflows/{build.yml => build-linux.yml} | 4 +-- .github/workflows/build-mac.yml | 26 +++++++++++++++++++ .github/workflows/build-win.yml | 26 +++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) rename .github/workflows/{build.yml => build-linux.yml} (86%) create mode 100644 .github/workflows/build-mac.yml create mode 100644 .github/workflows/build-win.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build-linux.yml similarity index 86% rename from .github/workflows/build.yml rename to .github/workflows/build-linux.yml index fddb67bc..7a7036cb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build-linux.yml @@ -1,4 +1,4 @@ -name: Build/release +name: Build/release [linux] on: push @@ -8,7 +8,7 @@ jobs: strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + os: [ubuntu-latest] steps: - name: Check out Git repository diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml new file mode 100644 index 00000000..7d69bbb9 --- /dev/null +++ b/.github/workflows/build-mac.yml @@ -0,0 +1,26 @@ +name: Build/release [mac] + +on: push + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [macos-latest] + + steps: + - name: Check out Git repository + uses: actions/checkout@v1 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + with: + github_token: ${{ secrets.github_token }} + release: ${{ startsWith(github.ref, 'refs/tags/v') }} diff --git a/.github/workflows/build-win.yml b/.github/workflows/build-win.yml new file mode 100644 index 00000000..aa10f3c9 --- /dev/null +++ b/.github/workflows/build-win.yml @@ -0,0 +1,26 @@ +name: Build/release [windows] + +on: push + +jobs: + release: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [windows-latest] + + steps: + - name: Check out Git repository + uses: actions/checkout@v1 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v1 + with: + node-version: 12 + + - name: Build/release Electron app + uses: samuelmeuli/action-electron-builder@v1 + with: + github_token: ${{ secrets.github_token }} + release: ${{ startsWith(github.ref, 'refs/tags/v') }}