Skip to content

Commit 2c5bdf8

Browse files
petterreinholdtsenSebKuzminsky
authored andcommitted
Test clang rip builds on github to detect when it break.
Also adjust the normal rip build to use eatmydata when installing packages, to speed up the test. (cherry picked from commit f2b36d9)
1 parent 43b8dc8 commit 2c5bdf8

1 file changed

Lines changed: 31 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,45 @@ jobs:
2626
- run: git fetch --recurse-submodules=no https://github.com/linuxcnc/linuxcnc refs/tags/*:refs/tags/*
2727
- name: Build RIP & test
2828
run: |
29-
./scripts/travis-install-build-deps.sh
29+
set -x
3030
sudo apt-get install -y eatmydata
31-
curl -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
32-
sudo apt install ./po4a_0.67-2_all.deb
31+
eatmydata ./scripts/travis-install-build-deps.sh
32+
eatmydata curl -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
33+
sudo eatmydata apt install ./po4a_0.67-2_all.deb
3334
cd src
3435
eatmydata ./autogen.sh
3536
eatmydata ./configure --with-realtime=uspace --disable-check-runtime-deps
3637
eatmydata make -O -j$((1+$(nproc))) default pycheck V=1
3738
# Note that the package build covers html docs
3839
eatmydata ../scripts/rip-environment runtests -p
3940
41+
rip-and-test-clang:
42+
runs-on: ubuntu-20.04
43+
steps:
44+
- name: Dump GitHub context
45+
env:
46+
GITHUB_CONTEXT: ${{ toJson(github) }}
47+
run: echo "$GITHUB_CONTEXT"
48+
- uses: actions/checkout@v2
49+
with:
50+
submodules: true
51+
fetch-depth: 0
52+
- run: git fetch --recurse-submodules=no https://github.com/linuxcnc/linuxcnc refs/tags/*:refs/tags/*
53+
- name: Clang build RIP & test
54+
run: |
55+
set -x
56+
sudo apt-get install -y eatmydata
57+
eatmydata ./scripts/travis-install-build-deps.sh
58+
sudo eatmydata apt-get install -y clang
59+
eatmydata curl -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
60+
sudo eatmydata apt install ./po4a_0.67-2_all.deb
61+
cd src
62+
eatmydata ./autogen.sh
63+
CC=clang CXX=clang++ eatmydata ./configure --with-realtime=uspace --disable-check-runtime-deps
64+
eatmydata make -O -j$((1+$(nproc))) default pycheck V=1
65+
# Note that the package build covers html docs
66+
eatmydata ../scripts/rip-environment runtests -p
67+
4068
htmldocs:
4169
runs-on: ubuntu-20.04
4270
steps:

0 commit comments

Comments
 (0)