-
Notifications
You must be signed in to change notification settings - Fork 104
64 lines (56 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
name: build
on:
push:
pull_request:
workflow_dispatch:
env:
CI_OS_NAME: linux
CI_COMMIT: ${{ github.sha }}
CCACHE_COMPRESS: 1
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_LIMIT_MULTIPLE: 0.95
QT_VERSION: 6.2.*
defaults:
run:
shell: bash
working-directory: repo
jobs:
build:
name: Linux GCC
runs-on: ubuntu-22.04
env:
CC: gcc-12
CXX: g++-12
CACHE_BASE_KEY: build-ubuntu-22.04-gcc-12
CCACHE_MAXSIZE: 250M # Per build matrix entry (2000M in total)
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: repo
- name: Cache $CCACHE_DIR
uses: actions/cache@v3
env:
CACHE_KEY: ${{ env.CACHE_BASE_KEY }}-ccache
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ env.CACHE_KEY }}-${{ github.sha }}
restore-keys: |
${{ env.CACHE_KEY }}-
- name: Install Linux packages for build
run: |
sudo apt-get update
sudo apt-get install -y ccache g++-12 libstdc++-12-dev libsystemc libsystemc-dev cmake
- name: Install Qt6
uses: jurplel/install-qt-action@v3
with:
version: ${{env.QT_VERSION}}
host: linux
dir: $RUNNER_TEMP
modules: qtscxml
- name: Build
run: /bin/bash .ci/build-project.sh
env:
QT_PATH: ${{github.workspace}}/${{env.Qt6_DIR}}
SYSTEMC_SRC: /usr/include
SYSTEMC_LIB: /usr/lib/x86_64-linux-gnu