-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 906 Bytes
/
ubuntu.yaml
File metadata and controls
42 lines (35 loc) · 906 Bytes
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
name: Ubuntu Build and Test
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: 0
lfs: true
clean: true
- name: Install Dependencies
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt install gcc g++ cmake flex libfl-dev bison gcc-riscv64-linux-gnu qemu-user -y
- name: Configure
run: |
mkdir -p build
cd build
cmake -DUNIT_TESTING=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Debug ..
- name: Build
run: |
cd build
make -j$(nproc)
- name: Test
run: |
cd build
ctest --verbose