Skip to content

Commit 09c73ea

Browse files
committed
Add a CI example and document 32-bit support
1 parent 1837769 commit 09c73ea

File tree

1 file changed

+35
-3
lines changed

1 file changed

+35
-3
lines changed

README.md

+35-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,45 @@ projects.
2121
- `clang++-21`
2222

2323
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.
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+
```

0 commit comments

Comments
 (0)