Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler test #84

Merged
merged 10 commits into from
Dec 13, 2024
Merged

Compiler test #84

merged 10 commits into from
Dec 13, 2024

Conversation

wusatosi
Copy link
Member

@wusatosi wusatosi commented Nov 26, 2024

Implement trivial cases for #73 .

By trivial I mean either available from package managers (GCC), or via officially supported install script (LLVM).

Included versions:

GCC:

LLVM:

This adds 7 new CI jobs.

As GCC/ Clang doesn't publish their nightly build on package managers, using nightly/ head of compiler will need us to build either a custom image or be tested in a nightly job.

Note: A more complicated but CI-wide salable approach using custom build docker image is being experimented.
Instead of pulling various versions of compiler on every CI run, we use a pre-built docker image that has all compilers install.
See: https://github.com/wusatosi/cpp-docker/ for an example of docker image, we can speed this up by having multiple kinds of image.
See: https://github.com/wusatosi/exemplar/tree/compiler-test-docker as a proof of concept on exemplar side implementation.
See: https://github.com/wusatosi/exemplar/actions/runs/12216494307/job/34079670273 as an example of actions run.

@wusatosi wusatosi linked an issue Nov 26, 2024 that may be closed by this pull request
10 tasks
@steve-downey
Copy link
Member

Don't do this to your own system, it will eventually corrupt your OS. However, for a throwaway VM like CI:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-15 g++-15

or something similar

The ubuntu-toolchain-r/test apt repo is the Ubuntu toolchain group's test repository.

@wusatosi
Copy link
Member Author

wusatosi commented Dec 6, 2024

Just out of curiosity, why would it break your os?

@steve-downey
Copy link
Member

Not every time, and not immediately, but it replaces components with the test versions, and eventually gets something slightly wrong in such a way that apt can't generate a solution for normal updates and installs. You can generally recover by uninstalling everything and reinstalling without the PPA.

@wusatosi
Copy link
Member Author

wusatosi commented Dec 7, 2024

Don't do this to your own system, it will eventually corrupt your OS. However, for a throwaway VM like CI:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-15 g++-15

or something similar

The ubuntu-toolchain-r/test apt repo is the Ubuntu toolchain group's test repository.

Hum, I don't think its working.
Reports: E: Unable to locate package gcc-15

Maybe gcc-15 is not available on 24.04?

See: https://github.com/bemanproject/exemplar/actions/runs/12215966614/job/34078564865

This reverts commit 26c3e71.
@wusatosi
Copy link
Member Author

@neatudarius this is requested by you, do you mind reviewing this PR?

@wusatosi wusatosi merged commit bce8e81 into bemanproject:main Dec 13, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable latest versions of compilers on main
3 participants