File tree 1 file changed +35
-3
lines changed
1 file changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,45 @@ projects.
21
21
- ` clang++-21 `
22
22
23
23
2 . [ ghcr.io/mattkretz/cplusplus-ci/latest] ( https://github.com/users/mattkretz/packages/container/package/cplusplus-ci%2Flatest )
24
- This container builds upon the base image. In addition it has GCC 15 and
25
- GCC trunk installed in ` /opt/gcc-15 ` and ` /opt/gcc-master ` , respectively.
26
- GCC is compiled from Git (` releases/gcc-15 ` and ` master ` branches).
24
+ This container builds upon the base image. In addition, GCC 15 and GCC
25
+ master are installed in ` /opt/gcc-15 ` and ` /opt/gcc-master ` , respectively.
26
+ GCC is compiled from Git (` releases/gcc-15 ` and ` master ` branches). Both
27
+ installations support ` -m32 ` and ` -mx32 ` builds.
27
28
28
29
In this image ` gcc ` /` g++ ` defaults to GCC 15.
29
30
30
31
In addition to the above, you can set your ` CXX ` environment variable to:
31
32
32
33
- ` g++-15 `
33
34
- ` g++-master ` (or ` g++-trunk ` )
35
+
36
+ ## Example GitHub CI workflow
37
+
38
+ ```
39
+ name: Clang
40
+
41
+ on:
42
+ push:
43
+ branches: [ main ]
44
+ pull_request:
45
+
46
+ jobs:
47
+ clang:
48
+ strategy:
49
+ fail-fast: false
50
+ matrix:
51
+ version: [20, 21]
52
+
53
+ runs-on: ubuntu-latest
54
+
55
+ container:
56
+ image: ghcr.io/mattkretz/cplusplus-ci/base
57
+
58
+ steps:
59
+ - uses: actions/checkout@v4
60
+
61
+ - name: Run test suite
62
+ env:
63
+ CXX: clang++-${{ matrix.version }}
64
+ run: make check
65
+ ```
You can’t perform that action at this time.
0 commit comments