-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (45 loc) · 2 KB
/
pr-ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Hugin Desktop Pull Request Pipeline
on: [pull_request]
jobs:
build:
name: 'Build: ${{ matrix.config.name }} / ${{ matrix.config.platform }}'
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: true
matrix:
config:
- { name: 'Windows Latest', os: windows-latest, platform: x64 }
- { name: 'Ubuntu Latest', os: ubuntu-latest, platform: x64 }
- { name: 'macOS-11', os: macos-latest, platform: x64 }
- { name: 'macOS Latest', os: macos-latest, platform: arm64 }
env:
PLATFORM: ${{ matrix.config.platform }}
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: 'Install libudev'
if: matrix.config.os == 'ubuntu-latest'
run: |
sudo apt-get install libudev-dev
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18.13.0
- name: Install dependencies
run: npm i node-gyp && npm install --quiet
- name: Build ${{ matrix.config.name }}
if: matrix.config.os == 'windows-latest'
run: npm run build:win-${{ matrix.config.platform }}-gh
- name: Build ${{ matrix.config.name }}
if: matrix.config.os == 'ubuntu-latest'
run: npm run build:linux-${{ matrix.config.platform }}
- name: Build ${{ matrix.config.name }}
if: matrix.config.name == 'macOS-11'
run: npm run build:mac-${{ matrix.config.platform }}-gh
- name: Build ${{ matrix.config.name }}
if: matrix.config.name == 'macOS Latest'
run: npm run build:mac-${{ matrix.config.platform }}-gh