-
Notifications
You must be signed in to change notification settings - Fork 10
97 lines (77 loc) · 2.4 KB
/
00-build.yaml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build Qflex
run-name: '${{ github.event_name }} ${{ github.head_ref }}'
on:
workflow_dispatch:
push:
branches:
- 'release'
- 'main'
- 'feat/**'
paths-ignore:
- 'docs/**'
pull_request:
branches:
- 'release'
- 'main'
- 'feat/**'
paths-ignore:
- 'docs/**'
schedule:
# Every Monday, Wednesday and Friday at midnight
- cron: '0 0 * * 1,3,5'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_binaries:
name: Build Binaries
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
binaries:
- qemu
- KeenKraken
- KnottyKraken
steps:
- name: Add 'mantic' package repository
run: sudo add-apt-repository -y "deb-src http://archive.ubuntu.com/ubuntu/ mantic main"
- name: Add 'latest boost' package repository
run: sudo add-apt-repository -y "deb https://ppa.launchpadcontent.net/mhier/libboost-latest/ubuntu mantic main"
# - name: Install dependancies
# run: |
# sudo apt install -y \
# gcc-13 g++-13 \
# libboost1.83-dev \
# libboost-serialization1.83-dev \
# libboost-iostreams1.83-dev \
# libboost-system1.83-dev \
# cmake
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libboost1.83-dev libboost-serialization1.83-dev libboost-iostreams1.83-dev libboost-system1.83-dev cmake
version: 1.1
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64
# - name: Update compilers paths
# run: |
# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60
# update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60
# sudo update-alternatives --set cc /usr/bin/gcc
# sudo update-alternatives --set c++ /usr/bin/g++
- name: Checkout QFlex
uses: actions/checkout@v4
with:
submodules: true
- name: Checkout libqflex
if: ${{ matrix.binaries }} == "qemu"
uses: actions/checkout@v4
with:
repository: parsa-epfl/libqflex
ref: feat/qemu-8.2
path: qemu/middleware
- name: Build
run: ./build ${{ matrix.binaries }} no