-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 1.26 KB
/
build.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
# Builds and validates via test run
name: Build Validation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: sudo apt update && sudo apt install python3 python3-pip python3-setuptools python3-dev python3-wheel ninja-build gcc-10 g++-10
- name: Install Meson
run: sudo -H pip3 install meson
- name: Clone Repository
uses: actions/checkout@v2
- name: Build
run: CC=gcc-10 CXX=g++-10 meson build/ --buildtype=release && ninja -C build/
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: janus-ftl-orchestrator
path: |
build/janus-ftl-orchestrator
build/janus-ftl-orchestrator-test
if-no-files-found: error
test:
name: Test
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: janus-ftl-orchestrator
- name: Run Tests
run: chmod +x janus-ftl-orchestrator-test && ./janus-ftl-orchestrator-test