forked from cjhannah/collab-vm-server-1
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (67 loc) · 2 KB
/
server_1604.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
name: "[collab-vm-server] GCC 5 - Ubuntu 16.04"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check_skip:
runs-on: ubuntu-16.04
outputs:
skip: ${{ steps.result_step.outputs.result }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: mstachniuk/ci-skip@master
with:
commit-filter: '[skip ci];[ci skip];[no ci]'
commit-filter-separator: ';'
- run: echo "::set-output name=result::${CI_SKIP}"
id: result_step
build_png:
needs: check_skip
if: ${{ needs.check_skip.outputs.skip == 'false' }}
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
./scripts/grab_deps_linux.sh
- name: Make PNG build
run: |
make -j$(nproc) NO_NATIVE=1
- name: Upload Artifact - PNG
uses: 'actions/upload-artifact@v2'
with:
name: Server Binary - PNG
path: './bin/**/*'
build_jpeg:
needs: check_skip
if: ${{ needs.check_skip.outputs.skip == 'false' }}
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
./scripts/grab_deps_linux.sh
- name: Make JPEG build
run: |
make -j$(nproc) JPEG=1 NO_NATIVE=1
- name: Upload Artifact - JPEG
uses: 'actions/upload-artifact@v2'
with:
name: Server Binary - JPEG
path: './bin/**/*'
- name: "Bonus: compile odb .cxx files"
run: |
mkdir odbout
odb -d sqlite -o odbout -s -q src/Database/VMSettings.h -DUSE_JPEG
odb -d sqlite -o odbout -s -q src/Database/Config.h -DUSE_JPEG
- name: Upload Artifact - ODB files
uses: 'actions/upload-artifact@v2'
with:
name: ODB files for building locally (JPEG Only)
path: './odbout/*'