11name : C++ Internal
2-
32on :
43 schedule :
54 - cron : 0 1 * * * # Nightly at 01:00 UTC
65 push :
76 branches :
87 - master
98 pull_request :
10-
119jobs :
1210 linux_cmake :
1311 timeout-minutes : 45
@@ -42,18 +40,16 @@ jobs:
4240 - ${{ matrix.config.runner }}
4341 name : ${{ matrix.config.name }}
4442 steps :
45- # This is sometimes needed when running docker builds since these
46- # sometimes produce files with root ownership
4743 - name : Ensure correct owner of repository
4844 run : sudo chown -R actions-runner:actions-runner .
4945 - name : Checkout source code
5046 uses : actions/checkout@v3
51- - name : Waf Clean
52- run : python3 waf clean --no_resolve
5347 - name : Waf Configure
5448 run : python3 waf configure --git_protocol=git@ --cmake_toolchain=${{ matrix.config.toolchain }} --cmake_verbose
5549 - name : Waf Build
56- run : python3 waf build --run_tests
50+ run : python3 waf build
51+ - name : Waf Run Tests
52+ run : python3 waf --run_tests
5753
5854 valgrind :
5955 timeout-minutes : 45
@@ -65,37 +61,40 @@ jobs:
6561 steps :
6662 - name : Ensure correct owner of repository
6763 run : sudo chown -R actions-runner:actions-runner .
68-
6964 - name : Checkout source code
7065 uses : actions/checkout@v3
71-
72- - name : Waf Clean
73- run : python3 waf clean --no_resolve
74-
7566 - name : Waf Configure
7667 run : python3 waf configure --git_protocol=git@ --cmake_toolchain=./resolve_symlinks/toolchains/gcc-toolchain.cmake --cmake_verbose
77-
7868 - name : Waf Build
79- run : python3 waf build --run_tests --ctest_valgrind
80-
69+ run : python3 waf build
70+ - name : Waf Run Tests
71+ run : python3 waf --run_tests --ctest_valgrind
8172 zig_toolchain_build :
8273 name : Zig Toolchain Build (Docker)
8374 runs-on : [self-hosted, vm, ubuntu-current]
8475 container :
85- image : ghcr.io/steinwurf/build-images/zig-cpp:0.14.1
76+ image : ghcr.io/steinwurf/build-images/zig-cpp
8677 options : --user 0:0
87- volumes :
88- - /root/.ssh:/root/.ssh
8978 steps :
9079 - name : Checkout source code
9180 uses : actions/checkout@v4
92- - name : Waf Clean
93- run : python3 waf clean --no_resolve
81+ with :
82+ persist-credentials : false
83+ - name : Configure Github Authentication
84+ run : |
85+ git config --global credential.helper 'store'
86+ git credential approve <<EOF
87+ protocol=https
88+ host=github.com
89+ username=x-access-token
90+ password=${{ secrets.GH_ACCESS_TOKEN }}
91+ EOF
9492 - name : Waf Configure with Zig Toolchain
95- run : python3 waf configure --git_protocol=git@ --cmake_toolchain=. ./resolve_symlinks/toolchains/zig-toolchain-x86_64-linux-musl.cmake --cmake_verbose
93+ run : python3 waf configure --git_protocol=https:// --cmake_toolchain=./resolve_symlinks/toolchains/zig-toolchain-x86_64-linux-musl.cmake --cmake_verbose
9694 - name : Waf Build with Zig Toolchain
97- run : python3 waf build --run_tests
98-
95+ run : python3 waf build
96+ - name : Waf Run Tests
97+ run : python3 waf --run_tests
9998 macos_cmake :
10099 timeout-minutes : 45
101100 strategy :
@@ -117,13 +116,12 @@ jobs:
117116 steps :
118117 - name : Checkout
119118 uses : actions/checkout@v3
120- - name : Waf Clean
121- run : python3 waf clean --no_resolve
122119 - name : Waf Configure
123120 run : python3 waf configure --git_protocol=git@ --cmake_toolchain=${{ matrix.config.toolchain }} --cmake_verbose
124121 - name : Waf Build
125- run : python3 waf build --run_tests
126-
122+ run : python3 waf build
123+ - name : Waf Run Tests
124+ run : python3 waf --run_tests
127125 windows_cmake :
128126 timeout-minutes : 45
129127 strategy :
@@ -133,13 +131,12 @@ jobs:
133131 steps :
134132 - name : Checkout
135133 uses : actions/checkout@v3
136- - name : Waf Clean
137- run : python waf clean --no_resolve
138134 - name : Waf Configure
139135 run : python waf configure --git_protocol=git@ --cmake_verbose
140136 - name : Waf Build
141- run : python waf build --run_tests
142-
137+ run : python waf build
138+ - name : Waf Run Tests
139+ run : python waf --run_tests
143140 clang-format :
144141 timeout-minutes : 45
145142 name : Clang-Format
@@ -153,7 +150,6 @@ jobs:
153150 uses : actions/checkout@v3
154151 - name : Run Clang-format
155152 run : find ./ -iname *.hpp -o -iname *.cpp -o -iname *.c -o -iname *.h | xargs clang-format --dry-run --Werror
156-
157153 workflow-keepalive :
158154 if : github.event_name == 'schedule'
159155 runs-on : [self-hosted, vm, ubuntu-current]
@@ -165,7 +161,6 @@ jobs:
165161 sudo apt update
166162 sudo apt install -y gh
167163 - uses : liskin/gh-workflow-keepalive@v1
168-
169164concurrency :
170165 group : ${{ github.workflow }}-${{ github.ref || github.run_id }}
171- cancel-in-progress : true
166+ cancel-in-progress : true
0 commit comments