-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (51 loc) · 2.48 KB
/
cmake.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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: build on ${{matrix.os}} with ${{matrix.compiler.compiler}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest ]
compiler:
- { compiler: GNU10, CC: gcc-10, CXX: g++-10, packages: gcc-10 g++-10 }
- { compiler: LLVM12, CC: clang-12, CXX: clang++-12, packages: clang-12 libomp-12-dev libclang-common-12-dev llvm-12-dev clang++-12 libc++-12-dev libc++1-12 libc++abi1-12 lld-12 }
env:
BUILD_TYPE: Release
CC: ${{matrix.compiler.CC}}
CXX: ${{matrix.compiler.CXX}}
steps:
- uses: actions/checkout@v2
- name: Update repositories
run: sudo apt-get update
- name: Install packages for ${{matrix.compiler.compiler}}
run: sudo apt-get -y install ${{matrix.compiler.packages}}
- name: Build and install emawp
run: git clone https://github.com/jakubfi/emawp && cd emawp && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig
- name: Build and install emcrk
run: git clone https://github.com/jakubfi/emcrk && cd emcrk && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig
- name: Build and install emdas
run: git clone https://github.com/jakubfi/emdas && cd emdas && mkdir build && cd build && cmake .. && make && sudo make install && sudo ldconfig
- name: Build and install emas
run: git clone https://github.com/jakubfi/emas && cd emas && mkdir build && cd build && cmake .. && make && sudo make install
- name: Install dependencies
run: sudo apt install libpulse0 libpulse-dev libasound2 libasound2-dev libncurses5 libncurses5-dev flex libfl-dev bison libbison-dev readline-common libreadline-dev
- name: Configure project
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Install
run: sudo cmake --install ${{github.workspace}}/build
- name: Prepare test disk images
working-directory: ${{github.workspace}}/tests
run: cd images && make
- name: Run tests (speed max)
working-directory: ${{github.workspace}}/tests
run: ./runtests.py
- name: Run tests (speed real)
working-directory: ${{github.workspace}}/tests
run: ./runtests.py -O cpu:speed_real=true