File tree Expand file tree Collapse file tree 1 file changed +35
-3
lines changed Expand file tree Collapse file tree 1 file changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,45 @@ projects.
2121 - ` clang++-21 `
2222
23232 . [ 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.
2728
2829 In this image ` gcc ` /` g++ ` defaults to GCC 15.
2930
3031 In addition to the above, you can set your ` CXX ` environment variable to:
3132
3233 - ` g++-15 `
3334 - ` 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