-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 936 Bytes
/
ci.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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [gcc-10.tc.json5]
steps:
- name: Install Dependencies
run: |
mkdir -p ${{ runner.workspace }}/bin && cd ${{ runner.workspace }}/bin
wget https://github.com/vector-of-bool/dds/releases/download/0.1.0-alpha.6/dds-linux-x64
chmod +x dds-linux-x64
ln -s $PWD/dds-linux-x64 dds
- name: Print Configuration
run: |
echo ${{ matrix.toolchain }}
${{ runner.workspace }}/bin/dds --help
- uses: actions/checkout@v2
with:
path: src
- name: Build
run: |
cd src
sed -Ei "s/(warning_flags:.*)'/\1 -Werror'/g" tools/${{ matrix.toolchain }}
LD_LIBRARY_PATH=tools/exampleso ${{ runner.workspace }}/bin/dds build -t tools/${{ matrix.toolchain }}