File tree Expand file tree Collapse file tree 1 file changed +40
-8
lines changed
Expand file tree Collapse file tree 1 file changed +40
-8
lines changed Original file line number Diff line number Diff line change @@ -12,23 +12,55 @@ jobs:
1212 container : darrylwest/ubuntu24-gpp1420:latest
1313
1414 steps :
15- - uses : actions/checkout@v4
15+ - name : Checkout code
16+ uses : actions/checkout@v4
1617
17- - name : Show Versions
18+ - name : Install system dependencies
1819 run : |
20+ apt-get update
21+ apt-get install -y \
22+ cmake \
23+ ninja-build \
24+ git
25+
26+ # Verify installation
1927 gcc --version
2028 g++ --version
2129 cmake --version
2230
31+ - name : Install Catch2
32+ run : |
33+ git clone https://github.com/catchorg/Catch2.git
34+ cd Catch2
35+ git checkout v3.7.1
36+ cmake -B build -S . -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=/usr/local
37+ cmake --build build --parallel $(nproc)
38+ cmake --build build --target install
39+ cd ..
40+
2341 - name : Configure CMake
24- run : cmake -B ${{github.workspace}}/build
42+ run : |
43+ cmake -B build \
44+ -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
45+ -DCMAKE_CXX_STANDARD=23 \
46+ -G Ninja
47+
48+ - name : Show Versions
49+ run : |
50+ gcc --version
51+ g++ --version
52+ cmake --version
2553
2654 - name : Build
27- run : cmake --build ${{github.workspace}}/build
55+ run : |
56+ cmake --build build --parallel $(nproc)
2857
29- - name : Test
30- working-directory : ${{github.workspace}}/build
31- run : ctest
58+ - name : Run tests
59+ run : |
60+ cd build
61+ ctest --output-on-failure --parallel $(nproc)
3262
3363 - name : Run
34- run : ${{github.workspace}}/build/tiny-app
64+ run : |
65+ echo "=== Running simple-colors example ==="
66+ ${{github.workspace}}/build/tiny-app
You can’t perform that action at this time.
0 commit comments