Commit graph

56 commits

Author SHA1 Message Date
Iain Buclaw
21a3756713 main.yml: Bump FreeBSD bootstrap to 13.2 2024-01-01 23:16:03 +01:00
Martin Kinkelin
9c97cdf29d GHA Main: Switch Windows x86 job to latest DMD host compiler
For some extra test coverage.
2023-12-23 17:05:05 +08:00
Martin Kinkelin
b4aea9f670 GHA: Add Windows jobs to main workflow 2023-12-23 17:05:05 +08: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
Martin Kinkelin
ed22f5c28f
ci/run.sh: Avoid deprecated Makefiles (#15832)
* ci/run.sh: Avoid deprecated Makefiles

* ci/run.sh: Streamline OS_NAME from `darwin` to `osx` on macOS

As DMD uses `osx` as OS in most other places, including the
`generated/osx/release/64` output dir, which is currently wrong
in run.sh's `build_path` and leads to CI failures on macOS.

* GHA: Disable `-debug` for DMD unittests with old host compilers

* GHA: Work around linker errors with -g on macOS 13

See https://issues.dlang.org/show_bug.cgi?id=23517.

compiler/src/posix.mak sets it to 10.9, compiler/test/Makefile to 11.
2023-11-22 11:41:16 +02:00
Martin Kinkelin
cae656cb89
GHA: Bump cross-platform-action to latest version (incl. FreeBSD fix) and get rid of superfluous symlink (#15831) 2023-11-19 07:54:22 +08:00
Iain Buclaw
b13052a343 Change host hypervisor to qemu for FreeBSD 2023-10-28 00:36:33 +02:00
Martin Kinkelin
6325773169 [try switching to macOS hosts] 2023-10-27 14:13:57 +02:00
Martin Kinkelin
f221cb335f CI: Move non-coverage FreeBSD Cirrus CI jobs to GitHub Actions
By running them in a qemu VM on Linux runners.
2023-10-27 14:13:57 +02:00
Martin Kinkelin
d23821f019 [CODECOV_TOKEN is apparently not required due to implicit GitHub Actions support!] 2023-09-17 20:06:31 +02:00
Martin Kinkelin
183d01fac6 [work around apparent macOS bug in ci/run.sh rebuild] 2023-09-17 20:06:31 +02:00
Martin Kinkelin
90ab114358 CI: Move non-FreeBSD Cirrus CI coverage jobs to GitHub Actions 2023-09-17 20:06:31 +02:00
Martin Kinkelin
f999f35810 CI: Move some Cirrus CI jobs to GitHub Actions 2023-09-16 15:10:46 +02:00
mhh
4b61613b4b Fix Issue 23885 - Rearranging the commands makes the crypto operations not fail 2023-05-05 06:40:14 +08:00
Iain Buclaw
dc83348131 Merge remote-tracking branch 'upstream/stable' into merge_stable 2022-11-01 11:39:15 +00:00
Iain Buclaw
c14402c86c github: Add step to pre_commit.yaml that checks changelog entry filenames 2022-10-28 15:30:59 +01: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
Geod24
25799d3841 Nightlies: Remove druntime reference 2022-07-11 19:43:55 +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
5fa5741ced ci(github): update actions/download-artifact from v2 to v3
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-03-30 07:40:22 +08:00
Luís Ferreira
18b58a50b9 ci(pre-commit): add git diff color configurations for better readability
This patch introduces some sensible configurations to highlight extra
whitespaces and highlight differences from two very identical lines. That makes
pre-commit `--show-diff-on-failure` option more readable and therefore faster
to discover the issue.

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-03-29 06:42:57 +08:00
Luís Ferreira
1f783a0eb8 ci(pre-commit): add stable branch to ci triggers
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-03-24 18:30:05 +00:00
Luís Ferreira
5e1e5c190a
ci(pre-commit): add pre-commit configuration (#13760)
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2022-03-21 11:31:57 +02:00
MoonlightSentinel
352ae3b868
Reuse build_release_template for the nightly build
The actions was generalized into a reuseable workflow and transferred
to dlang/installer (see `build_release_template.yml`).
2022-02-12 01:57:38 +01: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
Mathias LANG
a9c2432d27
Nightlies: Use v1 instead of specific tag (#13343) 2021-11-23 20:39:53 +00:00
MoonlightSentinel
76e9205761
Nightlies: Provide ldmd2 as dmd replacement
As some tools (e.g. the book builder) assume an existing dmd installation
2021-11-22 15:03:43 +01:00
MoonlightSentinel
7607ba6bb7
Use process substitution instead of additional pipe segment
Avoids the race condition w.r.t. `head` as outlined in
https://stackoverflow.com/questions/45195700/curious-case-of-failed-pipe
2021-11-22 15:03:35 +01: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
Florian
c92dbb48b8
Nightlies: Update release instead of tagging a new one (#12669)
Re-tagging the nighlty release for every build has two disadvantages:
- each build triggers a github notification
- `git fetch --tags` complains about a modified tag

This patch changes the nightly build s.t. it reuses the existing
release and simply updates the associated assets + description.

This means that the implicit timestamp + revision will be outdated.
Therefore I#ve modified the description to include the revision of
each repo.
2021-06-11 19:49:45 +08:00
MoonlightSentinel
39e19a8f9b Disable Github actions workflows for forks
Don't waste resources for each fork
2021-06-11 17:05:48 +09:00
MoonlightSentinel
065bcea58f
Use $HOME instead of $PWD in the nightly script
The shell script doesn't start in the home directory
2021-05-22 19:37:33 +02:00
Florian
c373b6ab01
Fix path for nightly artifacts (#12549)
The `glob` package used by `action-automatic-releases` doesn't support
tilde expansion yet (see isaacs/node-glob#416).

Use an absolute path extracted from the previous shell step instead.
2021-05-21 21:49:15 +08:00
MoonlightSentinel
2a42762c1a Enable upload of nightly builds to GitHub release
Also fixed a typo (`name` => `title`) to set an appropriate title for
the nightly release.
2021-05-20 19:55:00 +08:00
MoonlightSentinel
9443d84560 Add nightly builds on Github Actions
Creates a new action that generates a new release for all currently
supported targets (linux, osx, windows, freebsd) on merges to master.

The release are generated by using `build_all.d` from installer
2021-05-20 17:59:56 +08: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