64 Commits

Author SHA1 Message Date
Alex Rønne Petersen
781cc731ed
ci: move Git repository unshallowing to the workflow 2025-10-01 13:00:22 +02:00
Alex Rønne Petersen
acf8d5234f
ci: stop requiring an ARCH environment variable to be set 2025-10-01 13:00:22 +02:00
Andrew Kelley
2a97e0af6d CI: stop testing x86_64-macos
There are two reasons for this:

1. Apple is about to drop support for this target. Zig will keep support
   but move it to a lower tier - one that does not require continuous CI
   testing. Support for this target will be maintained by the enthusiasm
   of contributors but will not block other bug fixes and enhancements.
2. This is our only non-self-hosted action runner. We are migrating away
   from GitHub soon at which point this runner will no longer be
   available.
2025-09-21 12:36:50 -07:00
Alex Rønne Petersen
4d8dcccbd4
ci: temporarily disable riscv64-linux
GitHub sucks:

    Sep 20 20:49:21 ganymede runsvc.sh[82817]: An error occured: Runner version v2.326.0 is deprecated and cannot receive messages.
    Sep 20 20:49:21 ganymede runsvc.sh[82817]: Runner listener exited with error code 1
    Sep 20 20:49:21 ganymede runsvc.sh[82817]: Runner listener exit with terminated error, stop the service, no retry needed.
2025-09-21 17:29:57 +02:00
Alex Rønne Petersen
ac3229a435
Revert "ci: run riscv64-linux jobs if ci-riscv64-linux label is applied"
This reverts commit 8101104db0bdc7edeb07d91ab758c8a8d0861061.
2025-08-08 17:05:20 +02:00
Alex Rønne Petersen
8101104db0
ci: run riscv64-linux jobs if ci-riscv64-linux label is applied 2025-08-08 16:49:54 +02:00
Alex Rønne Petersen
765825b802
ci: bump riscv64-linux timeout from 6 hours to 7 hours
GitHub is apparently very bad at arithmetic and so will cancel jobs that pass
the 5 hours mark, even if they're nowhere near the 6 hours timeout. So add an
hour to assist GitHub in this very difficult task.
2025-08-03 16:46:15 +02:00
Alex Rønne Petersen
bab0de92b7
ci: re-renable riscv64-linux-debug and riscv64-linux-release for master 2025-08-02 09:39:56 +02:00
Andrew Kelley
d4a191fc0a CI: disable RISC-V runners for now
these are taking too long. let's use a different workflow for now until
these runs are not holding up the pipeline, then they can be
reintroduced on master branch
2025-07-15 13:54:12 -07:00
Alex Rønne Petersen
a885e8370a
ci: partial revert of f3f2a56859f96cee6f9bc8e8fe14b99ec653abaf
While I experiment with ways to cut down run times, run on master only.
2025-07-15 02:27:58 +02:00
Alex Rønne Petersen
f3f2a56859 ci: make changes to riscv64-linux to try to avoid timeouts
The idea is to have 2 runners per machine, since a lot of time is spent building
stage3 and stage4, both of which are largely single-core affairs. This will make
the test steps take longer, however, so the timeouts have been bumped a bit, and
max RSS for the test step has been lowered from 64G to 32G to prevent OOM.
Finally, we now only run a single ReleaseSafe job on PRs; Debug and Release jobs
are limited to pushes.
2025-07-15 01:30:46 +02:00
Alex Rønne Petersen
bd97b66186 ci: Add riscv64-linux-debug and riscv64-linux-release 2025-07-12 03:24:28 +02:00
Andrew Kelley
125a9aa82b restore debug llvm CI coverage
and reduce redundant coverage in slow runs to save time
2025-06-06 23:42:15 -07:00
Alex Rønne Petersen
80f2aeb8be ci: Bump x86_64-linux timeout from 8 hours to 9 hours.
The addition of FreeBSD and NetBSD targets to the test matrix in #24013 seems to
be causing timeouts under load. We might need to exclude some of those from CI,
but start by bumping the timeout so we can get a sense of how much more time is
actually needed.
2025-06-04 19:52:38 +02:00
Alex Rønne Petersen
1a08c83eb3 ci: Revert aarch64-linux timeout to GitHub's default 6 hours.
We don't seem to be getting non-deterministic hangs since 4f3b59f, and e28b402
cut the run times significantly on top of that. Runs now seem to take around 1-2
hours, so the default timeout should be plenty.
2025-05-30 11:59:33 +02:00
Alex Rønne Petersen
76da028239 ci: Bump aarch64-linux timeout to 9 hours.
These seem to be timing out under load lately.
2025-04-14 21:34:19 -04:00
Alex Rønne Petersen
85b3d02f76 ci: Bump x86_64-linux timeout to 8 hours.
We were really close to the timeout previously, and we recently added
hexagon-linux and loongarch64-linux to the test matrix.
2025-04-14 21:34:19 -04:00
Alex Rønne Petersen
50cb2fa0a2
ci: Stop triggering the workflow for llvm branches.
We usually do a PR for the llvm branches, so triggering a run for the branch
means we do extra work for no reason.
2025-04-04 06:06:39 +02:00
Andrew Kelley
ab381933c8 CI: bump timeout on windows to 7h 2025-02-26 22:29:41 -08:00
Andrew Kelley
c0448a6c7c CI: remove aarch64-windows checks for now
The devkit is a pain in the ass to keep online, I'll add this back
later.
2025-02-09 20:21:42 -08:00
Andrew Kelley
21f0fce28b CI: update macOS runner to 13
Apple has already dropped support for macOS 12.
GitHub Actions is dropping macOS 12 support now.
The Zig project is also dropping macOS 12 support now.

This commit also bumps default minimum macos version to 13.
2024-11-25 15:00:10 -08:00
Andrew Kelley
619e8a8957 CI: run tests in llvm19 branch 2024-09-19 18:20:21 -07:00
sobolevn
9a12905a2d Only set contents: read permission in GitHub Action 2024-08-28 00:45:22 -07:00
Andrew Kelley
da7c48324b CI: update macOS runner to 12
Apple has already dropped support for macOS 11.
GitHub Actions is dropping macOS 11 support now.
The Zig project is also dropping macOS 11 support now.
2024-07-02 02:04:10 -04:00
Andrew Kelley
e07ad33f1d update CI tarballs for LLVM 18
Also makes the windows CI scripts fetch the tarballs from the network if
not already on disk.
2024-05-08 19:37:29 -07:00
Jacob Young
71ccdb5a66 ci: add self-hosted x86_64 windows 2024-04-14 21:26:09 -04:00
Minsoo Choo
4ba4f94c93
CI: update actions/checkout to v4 (#19228) 2024-03-09 16:37:57 -05:00
Andrew Kelley
5234b8be9c CI: bump aarch64-linux-release timeout to 8 hours
Same as 0b8fca5a195278bb5d5fb1ea09a504c30f751415. Whne the system gets
busy, the runs take drastically longer.
2023-10-17 11:35:03 -07:00
Andrew Kelley
0b8fca5a19 CI: bump aarch64-linux-debug timeout to 8 hours
When the system gets busy, the runs take drastically longer.
2023-10-16 21:55:11 -07:00
Andrew Kelley
867e61e10b CI: update macos tarballs
Updates from LLVM release/17.x to 17.0.1
2023-09-22 09:43:31 -07:00
Andrew Kelley
749b88c7f3 CI: enable for llvm17 branch 2023-09-19 09:37:32 -07:00
Andrew Kelley
128fd7dd02 CI: -x86_64-macos-debug, +aarch64-macos-debug
It's easier to get M1 hardware for testing than x86_64-macos. This
addresses the current bottleneck in our CI pipeline.
2023-06-21 00:37:58 -07:00
Andrew Kelley
fab9b7110e Merge remote-tracking branch 'origin/master' into llvm16 2023-02-03 12:49:40 -07:00
Andrew Kelley
434124a476 CI: enable checks on llvm16 branch 2023-01-29 19:06:46 -07:00
Andrew Kelley
f68d3c63df CI: give x86_64-linux-release a little more time
When the CPU cores are pegged, the thermal throttling kicks in and makes
jobs take significantly longer.
2023-01-27 14:53:17 -07:00
Andrew Kelley
3ff1f346b0 CI: give aarch64-linux-debug a little more time 2023-01-24 20:32:29 -07:00
Andrew Kelley
3df4707ea7 CI: also test x86_64-macos with a debug zig compiler 2023-01-22 12:14:25 -07:00
Andrew Kelley
73827d2ea9 CI: give x86_64-linux-debug a little more time 2023-01-17 17:21:22 -07:00
Andrew Kelley
7b68b76326 CI: additionally test debug builds on Windows 2023-01-17 13:06:07 -05:00
Andrew Kelley
c9231f0547 CI: add aarch64-windows coverage 2022-12-10 16:28:49 -07:00
Andrew Kelley
dc852f8226 CI: adjust logic for cancelling workflows
This prevents clobbering when two contributors' PRs have the same head
ref.
2022-12-05 15:51:10 -07:00
Andrew Kelley
9f9f1aadc7 CI: add aarch64-linux-debug job and flatten dirs 2022-12-01 00:37:47 -07:00
Loris Cro
a2403d354f ci: remove manual run feature 2022-11-25 22:28:36 +01:00
Loris Cro
5b9d0a446a ci: windows: fetch before checking out specific commit 2022-11-25 20:46:02 +01:00
Loris Cro
45120f929c ci: windows: unshallow repository before checking specific commit 2022-11-25 20:41:33 +01:00
Loris Cro
f4c63400f0 ci: give name to manually run workflows 2022-11-25 20:37:15 +01:00
Loris Cro
c59d60893b ci: windows: prevent del errors when the directory doesn't exist 2022-11-25 20:35:39 +01:00
Loris Cro
e096f972d0 ci: windows: use correct windows powershell syntax 2022-11-25 20:19:25 +01:00
Loris Cro
bc90f2ae3c ci: when running the workflow manually, preserve newer ci folder
This is the main way this feature is supposed to work:

1. you discover that a test started failing at some point
   but a misconfiguration in the CI script didn't catch that
   causing a bunch of false negative (ie false green) CIs
   over time
2. you fix the script and now want to figure out when the
   test started failing
3. you want to rebuild older commits, potentially only on specific
   targets, but with the new fixed CI script that correctly
   catches failures

This is what this commit enables
2022-11-25 20:08:57 +01:00
Loris Cro
764651c840 ci: fix syntax error in workflow file 2022-11-25 20:02:51 +01:00