-
Notifications
You must be signed in to change notification settings - Fork 25
36 lines (33 loc) · 965 Bytes
/
build-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build & Test
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Prepare Environment
uses: actions/setup-node@v2
with:
node-version: 17
cache: 'npm'
- name: Install Dependencies (Ubuntu Only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
make install-dev
- name: Install Dependencies (macOS & Windows)
if: matrix.platform != 'ubuntu-latest'
run: make install-dev
- name: Build
run: make build-ci
- name: Test
run: make test