C++17 <filesystem> header (GCC 8+) #25473
-
First time attempting to use Github Actions with my C++20 project. GCC should support C++17 from version 8 but
PS: Tried to link everything but it does allow me only 2 links so you must find it yourself. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
According to the virtual environment documentation for
If they follow the usual Ubuntu and Debian GCC packaging conventions you should be able to select the major version by suffixing Alternatively you can use |
Beta Was this translation helpful? Give feedback.
According to the virtual environment documentation for
ubuntu-latest
(currently still at 18.04) it has a bunch of GCC versions installed:If they follow the usual Ubuntu and Debian GCC packaging conventions you should be able to select the major version by suffixing
gcc
command with the version, e.g. rungcc-10
to select GCC 10.Alternatively you can use
jobs.<job_id>.container
and use a container image that contains (or lets you install) whichever version you need.