Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Convert to build matrix #135

Merged
merged 3 commits into from
Dec 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 18 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,31 @@ on:
types: [published, created, edited, prereleased]

jobs:
# Windows
build-win:
name: Build (Windows)
runs-on: windows-latest
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest]
fail-fast: false
steps:
# Setup
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: 12.x
- run: npm install

# Build
- run: npm run electron:build -- -w # -p always
- name: Build for Windows
if: matrix.os == windows-latest
run: npm run electron:build -- -w # -p always

# macOS
build-mac:
name: Build (macOS)
runs-on: macos-latest
steps:
# Setup
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install

# Build
- run: npm run electron:build -- -m # -p always
- name: Build for macOS
if: matrix.os == macos-latest
run: npm run electron:build -- -m # -p always

# Linux
build-linux:
name: Build (Linux)
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install

# Build
- run: npm run electron:build -- -l # -p always
- name: Build for Linux
if: matrix.os == linux-latest
run: npm run electron:build -- -l # -p always