-
Notifications
You must be signed in to change notification settings - Fork 44
65 lines (54 loc) · 1.55 KB
/
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
59
60
61
62
63
64
65
name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]
defaults:
run:
shell: bash
jobs:
build:
strategy:
matrix:
include:
- target: ubuntu-latest
artifact: endless-sky-editor
binary: endless-sky-editor
- target: ubuntu-18.04
artifact: endless-sky-editor
binary: endless-sky-editor
- target: windows-latest
artifact: release/endless-sky-editor.exe
binary: release/endless-sky-editor.exe
- target: macos-latest
artifact: endless-sky-editor.app/
binary: endless-sky-editor.app/Contents/MacOS/endless-sky-editor
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v2
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ${{ github.workspace }}/Qt/
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: "5.15.2"
dir: ${{ github.workspace }}/Qt/
arch: win64_mingw81 # This is only used (and needed) on windows, so we can safely specify it for all OSes
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Run qmake
run: qmake
- name: Run make
run: make -j $(nproc)
- name: Run --version
run: ./${{ matrix.binary }} --version
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
path: ${{ matrix.artifact }}