Debian Codegraph @

.github/workflows/makefile.yml

raw symbols SCIP
1 name: Make-and-check CI
2
3 on:
4 push:
5 branches: [ "master" ]
6 pull_request:
7 branches: [ "master" ]
8
9 permissions:
10 contents: read
11
12 jobs:
13 build-on-ubuntu-2004:
14 runs-on: ubuntu-20.04
15 steps:
16 - uses: actions/checkout@v3
17 - name: configue
18 run: ./autogen.sh && ./configure
19 - name: Run make
20 run: make BUILDTYPE=NATIVEONLY V=1
21 - name: Configure Huge Pages
22 run: |
23 sudo mkdir -p /mnt/huge
24 sudo mount -t hugetlbfs -o pagesize=2MB none /mnt/huge
25 echo "vm.nr_hugepages = 1024" | sudo tee -a /etc/sysctl.conf
26 sudo sysctl -p
27 - name: Run checks
28 run: |
29 sudo make BUILDTYPE=NATIVEONLY check | grep "FAIL:" > check_result
30 cat check_result
31 total_fail_count=0
32 while read line; do
33 fail_count=$(echo "$line" | awk '{print $NF}')
34 total_fail_count=$((total_fail_count + fail_count))
35 done < check_result
36 rm -rf check_result
37 test $total_fail_count == 0 || exit 1
38
39 build-on-ubuntu-latest:
40 runs-on: ubuntu-latest
41 steps:
42 - uses: actions/checkout@v3
43 - name: configue
44 run: ./autogen.sh && ./configure
45 - name: Run make
46 run: make BUILDTYPE=NATIVEONLY V=1
47 - name: Configure Huge Pages
48 run: |
49 sudo mkdir -p /mnt/huge
50 sudo mount -t hugetlbfs -o pagesize=2MB none /mnt/huge
51 echo "vm.nr_hugepages = 1024" | sudo tee -a /etc/sysctl.conf
52 sudo sysctl -p
53 - name: Run checks
54 run: |
55 sudo make BUILDTYPE=NATIVEONLY check | grep "FAIL:" > check_result
56 cat check_result
57 total_fail_count=0
58 while read line; do
59 fail_count=$(echo "$line" | awk '{print $NF}')
60 total_fail_count=$((total_fail_count + fail_count))
61 done < check_result
62 rm -rf check_result
63 test $total_fail_count == 0 || exit 1