-
-
Notifications
You must be signed in to change notification settings - Fork 283
42 lines (37 loc) · 1.03 KB
/
make.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
37
38
39
40
41
42
name: Test build release
on:
pull_request:
branches: ['*']
types:
- opened
- synchronize
- closed
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test-build-release:
# commit the word "build" to the commit message to enable this job
if: contains(github.event.head_commit.message, 'build')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm ci
- name: Install necessary FlatPak tools
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt update && sudo apt install flatpak flatpak-builder elfutils
- name: Build release
run: npm run make
- uses: actions/upload-artifact@v3
with:
name: debug-build-${{ matrix.os }}
path: out/make