-
-
Notifications
You must be signed in to change notification settings - Fork 379
81 lines (64 loc) · 1.73 KB
/
build-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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Test all pull requests to ensure they build
name: Build Pioneer
# Controls when the action will run.
on:
pull_request:
paths:
- 'src/**.cpp'
- 'src/**.h'
env:
packages: >
mesa-common-dev
libfreeimage-dev
libglew-dev
libsigc++-2.0-dev
libvorbis-dev
libassimp-dev
libsdl2-dev
libsdl2-image-dev
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-gcc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04]
steps:
# Checkout the repository as $GITHUB_WORKSPACE
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-fast update
sudo apt-fast install -y ${{ env.packages }}
- name: Build GCC
run: ./bootstrap cmake && make -C build
- name: Build Pioneer Data
run: make -C build build-data
- name: Build Release
run: ./scripts/build-travis.sh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Linux-Artifacts
path: release/zip/*.tar.gz
build-clang:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checkout the repository as $GITHUB_WORKSPACE
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-fast update
sudo apt-fast install -y clang-8 ${{ env.packages }}
- name: Build Clang
run: |
export CC=clang CXX=clang++
./bootstrap cmake && make -C build
- name: Build Pioneer Data
run: make -C build build-data
- name: Build Release
run: ./scripts/build-travis.sh