-
Notifications
You must be signed in to change notification settings - Fork 10
103 lines (88 loc) · 2.22 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
98
99
100
101
102
103
name: Build Binaries
run-name: '[${{ github.event_name }}] ${{ github.ref_name }}'
# When is the workflow actually triggerd
on:
# Manually triggered
workflow_dispatch:
push:
branches:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
branches:
paths-ignore:
- 'docs/**'
- '*.md'
# Full concurrent
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
# Maight be set dynamically
env:
debug: release
jobs:
# Scan the working directory to trigger build based on
# the latest change that have been made to the repo
paths-filter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
ref: ${{ github.ref }}
filters: |
qemu:
- 'qemu/**'
- 'build'
flexus:
- 'flexus/**'
- 'build'
outputs:
qemu: ${{ steps.changes.outputs.qemu }}
flexus: ${{ steps.changes.outputs.flexus }}
# Build the Kraken if their files have been modified
build_simulator:
name: Build Simulators
needs: paths-filter
if: ${{ (needs.paths-filter.outputs.flexus == 'true') }}
env:
CC: gcc-13
CXX: g++-13
strategy:
fail-fast: false
matrix:
binaries:
- keenkraken
- knottykraken
runs-on: ubuntu-24.04
steps:
- name: Checkout QFlex
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: '3.11.9'
- name: Install conan
run: pip install conan
- name: Detect current environmment profile
run: conan profile detect --force
- name: Build
run: ./build ${{ matrix.binaries }} ${{ env.debug }}
# Build QEMU only
build_qemu:
name: Build Qemu
needs: paths-filter
if: ${{ (needs.paths-filter.outputs.qemu == 'true') }}
runs-on: ubuntu-latest
container:
image: birate/qflex-builder:2024.04
steps:
- name: Checkout QFlex
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: ./build cq ${{ env.debug }}