https://github.com/wx257osn2/cxx_environment
modern C++ development environment
https://github.com/wx257osn2/cxx_environment
Last synced: about 2 months ago
JSON representation
modern C++ development environment
- Host: GitHub
- URL: https://github.com/wx257osn2/cxx_environment
- Owner: wx257osn2
- License: mit
- Created: 2024-08-18T13:05:13.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-01T19:44:35.000Z (10 months ago)
- Last Synced: 2025-03-01T20:33:43.338Z (10 months ago)
- Language: Shell
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ environment
modern C++ environment using singularity
## Usage
### Use on Github Actions
You can use `cxx-env-run` after `uses: wx257osn2/cxx_environment@v3` .
```yaml
runs:
- uses: wx257osn2/cxx_environment@v3
with:
version: v20251103 # specify image version
- run: cxx-env-run g++ --version
```
### Use on Local Environment
#### Prerequisites
- required
- [`singularity`](https://github.com/sylabs/singularity) or [`apptainer`](https://github.com/apptainer/apptainer) on `$PATH`
- optional
- [`docker`](https://docs.docker.com/reference/cli/docker/) on `$PATH` , and
- you can `sudo` , or
- [`proot`](https://proot-me.github.io/) exists on `$PATH`
#### Option A: Build an image
```console
$ ./build.bash
```
or,
```console
# ./build.bash
```
#### Option B: Download a prebuilt image
```console
$ ./pull.bash v20251103
```
#### Exec some commands on the image
```console
$ ./run clang++ --version
Ubuntu clang version 21.1.3 (++20250923093437+74cb34a6f51a-1~exp1~20250923213555.35)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-21/bin
```
#### Shell
```console
$ ./bash
(cxx singularity) user@hostname:/path/to/cxx_environment$
```
## License
[MIT](https://github.com/wx257osn2/cxx_environment/blob/master/LICENSE)