Commit graph

35 commits

Author SHA1 Message Date
Martin Kinkelin
3aaf7bf222
GitHub Actions: Bump macos-12 jobs to macos-13 (#17063)
As the macos-12 image will be 'fully unsupported' starting with December 3rd:
https://github.com/actions/runner-images/issues/10721
2024-11-14 03:46:12 +01:00
Mathias LANG
1d8f290318
Upgrade some deprecated GitHub actions (#16607)
The UI complains about them being on Node 16.
2024-06-22 12:24:46 +08:00
Mathias Lang
9fd775b37c CI: Use macOS-12 instead of macOS-11
macOS-11 is going to be removed at the end of the month and undergoing brownouts.
We want to migrate away from it as fast as possible, but we only upgrade to macOS-12.
2024-06-22 04:03:12 +02:00
Johan Engelen
afc38e9dca
Make distinction between CC and CXX in the testsuite. (#16434)
Clang makes a distinction between clang and clang++. In particular, clang++ will give a warning when it is passed `.c` source files; and the extra output warning text means that dmd testsuite output checking fails. The warning can be silenced (-Wno-deprecated) but then other tests will fail because `#ifdef __cplusplus` will be true, leading to header file import issues.
2024-05-03 07:30:55 +08:00
Adam Wilson
4414c2aeaa
Exclude MSVC-* on Ubuntu (#16423)
Removes the Ubuntu/MSVC builds from the GitHub Actions as MSVC is obviously not supported on Ubuntu but it still runs the tests. This should reduce the CI resources and failure modes.
2024-04-29 11:37:27 +08:00
Martin Kinkelin
65b6c2b62d GHA: Set N parallelism dynamically
To adapt automatically to the number of available CPU cores.
2024-02-21 07:43:35 +01:00
Martin Kinkelin
b20a5f134d
GHA: Use all 4 new CPU cores on non-Mac runners (#16070)
see https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/
2024-01-22 15:05:43 +02:00
Martin Kinkelin
f3f89ca5b6 CI: Adapt to generic Makefile for Phobos 2023-12-18 17:10:31 +08:00
Martin Kinkelin
49b71b95b9 GitHub Actions: Fix up C++ interop tests job on Windows 2023-12-18 07:29:32 +08:00
Martin Kinkelin
bc793e59e9 druntime: Rename posix.mak to Makefile 2023-12-18 07:29:32 +08:00
mhh
4b61613b4b Fix Issue 23885 - Rearranging the commands makes the crypto operations not fail 2023-05-05 06:40:14 +08:00
Geod24
001134e8da GH Actions: Update versions of actions used 2022-10-15 01:18:51 +09:00
Geod24
dbf86dffbb GH Actions: Update set-output to use the new environment files
The old approach is deprecated.
2022-10-15 01:18:51 +09:00
Geod24
5f63f28934 GH Actions: Drop deprecated Ubuntu 18.04, use 20.04, remove g++ < 9
Github is removing support for this distribution,
as it has reached end of standard support.
2022-10-15 01:18:51 +09:00
Iain Buclaw
d579c467c1 GH CI: Set -isysroot to the default pipeline SDK path & use OSX11 2022-09-26 05:56:08 +02:00
Iain Buclaw
09d04945bd Fix build script paths to work with new merged repository structure
Co-Authored-By: Geod24 <pro.mathias.lang@gmail.com>
Co-Authored-By: Martin Kinkelin <noone@nowhere.com>
Co-Authored-By: Vladimir Panteleev <git@cy.md>
2022-07-09 23:49:27 +02:00
Luís Ferreira
195226a217 treewide: remove trailing whitespaces
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-02-10 16:58:13 +00:00
Iain Buclaw
ce2366638c workflows/runnable_cxx.yml: Add newer versions of gcc and clang to test 2021-12-31 15:26:05 +09:00
Geod24
652bbb7980 Github CI: Re-enable 32 bits tests 2021-11-01 10:42:11 +01:00
Tim Schendekehl
65a4c5e505 Set LD_LIBRARY_PATH using env in GitHub action 2021-10-24 15:54:24 +00:00
Tim Schendekehl
8df9a22259 Use correct phobos when running C++ tests in GitHub action
The GitHub workflow is setting LD_LIBRARY_PATH to the host dmd library
folder with libphobos2.so. The tests are built using a new phobos. They
select the library path using -L-rpath, which sets DT_RUNPATH on the
binary, but LD_LIBRARY_PATH has priority over DT_RUNPATH.
For tests/dshell/dll_cxx.d this caused a link failure, because a new
symbol from phobos was not found in the older phobos.
Reseting LD_LIBRARY_PATH while running the tests makes sure, that the
new phobos is used.
2021-10-23 18:35:45 +02:00
Tim Schendekehl
d71fd29d62 fix Issue 22323: Link error for virtual destructor of C++ class in DLL
The new test test/dshell/dll_cxx.d is based on test/dshell/dll.d, but
builds the DLL/SO from C++ instead of D.
2021-10-11 18:18:54 +02:00
MoonlightSentinel
39e19a8f9b Disable Github actions workflows for forks
Don't waste resources for each fork
2021-06-11 17:05:48 +09:00
Geod24
8bbdb1657b cxx tests: Use Ubuntu 18.04, disable 32 bits tests, use latest DMD
Those tests broke because of an update on the underlying image.
Since apt was complaining about having broken deps,
and Ubuntu 16.04 is about to be EOL, we upgrade to Ubuntu 18.04.
However, this led to https://issues.dlang.org/show_bug.cgi?id=19116
being triggered, hence the workaround of disabling 32 bits tests.
The DMD change was just noticed while working on this,
and removing those lines makes sure we always use the latest release version.
2021-03-13 23:21:51 +09:00
Geod24
917fec1674 GH Action: Check out the correct branch after merge
Unfortunately, the documentation states that `github.base_ref` and `github.head_ref`
are only available in pull requests, so instead we're using `github.ref` when
`github.base_ref` is empty.
2020-11-18 09:16:34 +08:00
Geod24
f17a621107 Github CI: Replace set-env with environment file
Due to a security vulnerability, Github is removing set-env and add-path.
See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
2020-10-10 02:51:59 +02:00
Iain Buclaw
8c686d6d16 Github CI: Add step for running cxx-unittest 2020-08-15 07:40:41 +02:00
Geod24
ec370e221f Github Actions: Drop testing for LLVM < v6.0.0
Matches what LDC did recently.
Hopefully this will also reduce the cache load,
potentially resulting in less cache eviction,
and so less downloads.
2020-08-09 15:57:55 +02:00
Geod24
576eaba790 Github CI: Update action name
It was moved to the dlang-community organization last night.
2020-06-04 13:48:00 +09:00
Geod24
d5ebcda7db Update setup-dlang action to v1
Removes the need to specify the token, as it is now specified by default.
2020-05-22 06:00:23 +02:00
Geod24
dfbb9a1d5d Github CI: Export built DMD as artifacts
The intent is to make this built compiler usable by a Buildkite-like
tester that could run on Github CI and test all three platforms,
using the project's configuration instead of extracting the Travis script.
2020-05-20 18:13:25 +09:00
Geod24
de7c9844f4 runnable_cxx: Use relative path in wrapper scripts
Currently the runnable scripts error out with:
```
Expected version X.Y.Z, from '/Users/runner/runners/2.168.0/work/dmd/dmd/clang+llvm-9.0.0-x86_64-darwin-apple/bin/clang++-wrapper', got:
/Users/runner/runners/2.168.0/work/dmd/dmd/clang+llvm-9.0.0-x86_64-darwin-apple/bin/clang++-wrapper: line 2: /Users/runner/runners/2.165.2/work/dmd/dmd/clang+llvm-9.0.0-x86_64-darwin-apple/bin/clang++: No such file or directory
```

As can be seen, the ` ${{ github.workspace }}` property points to `/Users/runner/runners/2.168.0/work/dmd/`,
but the script was actually generated and cached on `/Users/runner/runners/2.165.2/work/dmd/`,
an older version of the runner.
Using a path relative to the script ensure that this does not happen anymore.
Additionally, the cache key was changed to force invalidation.
2020-04-09 16:48:24 +09:00
Geod24
375acc0b66 Improve Github actions: Cache clang download, use clang++ / g++ for invocation
The caching will hopefully save some time in the already fast running actions.
The usage of the correct variable is more future proof, as subtle differences were uncovered while doing the same thing in druntime.
2020-04-06 19:34:11 +09:00
Geod24
b037602f0f Github Actions: Do not checkout the base ref for DMD
We need to do it for druntime and phobos because we want to support stable,
but for DMD we want to test the default (which is the merge commit).
2020-03-28 20:50:58 +09:00
Geod24
1cfa0270f8 Add a Github action file to test runnable_cxx
This allows us to test `runnable_cxx` with multiple versions of g++ and clang on linux,
and multiple versions of clang on OSX.
In the future, we can extend it to work on MSVC as well,
but in its current form this can unblock PR 10927.
2020-03-27 04:21:11 +09:00