Andrew Kelley
406353103a
ci: freebsd: update to llvm 12
2021-04-14 22:59:34 -07:00
Andrew Kelley
1438c324a4
ci: update drone CI to llvm 12
2021-04-14 21:18:23 -07:00
Andrew Kelley
391a40d601
ci: update linux to llvm12 tarball
2021-04-14 20:35:33 -07:00
Michael Dusan
6a7f21d1b8
ci: macos-aarch64 update dep tarballs for llvm12
2021-04-14 19:43:17 -07:00
Jakub Konka
d6d27d51ef
CI: update brew before installing pkgs
2021-04-12 18:42:51 +02:00
Michael Dusan
cab1d5c1a3
azure: OnMasterSuccess dependsOn BuildMacOS_arm64
2021-04-11 05:17:18 -04:00
Michael Dusan
c676c21824
ci: remove superfluous linefeed from macos arm64
2021-04-11 01:33:17 -04:00
Michael Dusan
75f86dab3f
macos: add aarch64 (arm64) to downloads page
2021-04-10 19:33:17 -07:00
Andrew Kelley
175adc0bd7
ci: update msys2 installer
2021-03-28 17:49:28 -07:00
Jakub Konka
54b42a7596
azure: run pacman with -Sy
2021-03-28 11:01:57 +02:00
Michael Dusan
e35f325dd1
azure: produce macos arm64 binaries
...
new pipeline `BuildMacOS_arm64`
- `vmImage: 'macOS-10.15' `
new `macos_arm64_script`
- switch from using `make` to `ninja`
- select xcode 12.4
- set zig-cache env variables
- build host-zig binary with xcode, link against llvm for x86_64 (target macos 10.15)
- build arm64-zig binary with xcode and host-zig, link against llvm for arm64 (target macos 11.0)
- ad-hoc codesign arm64 binary with linker
- use host-zig for docgen
- use host-zig for experimental std lib docs
- sync final `release/` hierarchy with `linux_script`
- use gnu-tar for good-practices (set owner, set sort)
enhance `CMakeLists.txt`
- do not build `zig0` when cross-compiling
- disable `BYPRODUCTS` directive `zig1.o` to avoid `ninja` error
see #8265
2021-03-20 22:50:51 +01:00
LemonBoy
72664df491
std: Deprecate the B and Bi format specifiers
...
Following #8007 and #8137 let's get rid of the last weird format.
2021-03-07 14:58:45 +02:00
Andrew Kelley
ffc8a43dfb
ci: stop directly pushing web page stuff to s3
...
This is now handled by the www.ziglang.org repo deploy script.
2021-01-12 17:27:36 -07:00
Andrew Kelley
23c6cca24d
ci: give the updated website content to the website repo
...
and use master branch not hugo-redesign branch
2021-01-12 13:26:52 -07:00
Andrew Kelley
166e9ea689
ci: add stdDocs to downloads/index.json for master branch
2021-01-12 12:52:59 -07:00
Andrew Kelley
c7666ff885
ci: import the update-download-page from www repo
2021-01-07 16:49:13 -07:00
Andrew Kelley
d8eba037a4
ci: fix path to update-download-page.zig script
2021-01-07 15:49:43 -07:00
Andrew Kelley
aa2422e830
ci: add github.com's public key for the ssh clone
2021-01-07 12:28:55 -07:00
Andrew Kelley
87aa052e23
ci: pass --override-lib-dir to emit std lib docs
...
Otherwise we get errors from conflicting std libs.
2021-01-07 02:58:27 -07:00
Andrew Kelley
ee1b370404
ci: don't use ninja on linux
...
I got this error when re-running the cmake line setting
-DZIG_EXECUTABLE:
```
ninja: warning: multiple rules generate zig1.o. builds involving
this target will not be correct; continuing anyway
[-w dupbuild=warn]
```
But it works fine with make.
2021-01-07 00:38:48 -07:00
Andrew Kelley
a279cf81b2
ci: add missing target/mcpu args to zig cc
...
In the previous commit, I forgot to add these.
2021-01-07 00:18:28 -07:00
Andrew Kelley
ce5222d945
ci: rework linux script
...
* no longer depend on apt.llvm.org, instead we rely on a zig-bootstrap
tarball with pre-built Zig, LLVM, LLD, and Clang. Similar to the
Windows Dev Kit but for Linux. This also makes the script no longer
depend on Docker, libxml2, or GCC.
* remove bash retry logic; it was only needed for flaky apt.llvm.org
and isn't needed for the other resources we download.
* build and upload the experimental std lib automatically generated
docs. langref.html is moved to docs/langref.html because the std lib
docs are in docs/std/.
* the superfluous "zig" directory in $prefix/lib/zig/std/std.zig is
removed from the tarball.
* update_download_page makes a commit in the www.ziglang.org repository
updating data/releases.json so that repository can manage deploys.
2021-01-06 23:40:17 -07:00
Frank Denis
5afd6204e8
Azure CI: update MSYS version
2021-01-06 15:52:34 -08:00
Andrew Kelley
2fe8a48215
ci: omit stage2 backend from stage1 on Windows
...
to avoid out-of-memory on the CI runs.
2021-01-04 14:59:18 -07:00
Andrew Kelley
5c92e24a29
drone ci: skip compile error tests to save time
...
These are covered by other CI scripts and we're up against Drone CI time
limits.
2021-01-03 20:10:07 -07:00
Jay Petacat
993f4b5a06
ci: fix git describe
...
git describe is used for version string creation, but it had to be
reverted in commit 69da6ba
because it was broken in CI builds.
Azure Pipelines and Drone perform shallow clones by default.
This change reconfigures them to fetch history and tags. It adds tens of
seconds, which is negligible compared to overall build and test time.
Related: #6466 , #6509 , #7601
2021-01-01 20:41:39 -07:00
Luna
7550af0d4c
ci: freebsd: use py37-s3cmd
2020-12-31 08:18:06 +01:00
Andrew Kelley
3366e4caf3
ci: put Drone CI back to normal
...
Surely this time all the problems have been fixed
2020-12-26 13:55:38 -07:00
Andrew Kelley
c452bb1322
ci: build in Debug mode to help find the deadlock
2020-12-25 18:39:13 -07:00
Andrew Kelley
1d94a68936
add an option to compile zig in single-threaded mode
...
And enable it for Drone CI. I hate to do this, but I need to make
progress on other fronts.
2020-12-20 15:37:58 -07:00
Michael Dusan
ae0af5e5a6
ci linux: bump qemu-5.2.0
2020-12-09 21:31:31 -05:00
LemonBoy
55838bc291
ci: Use eval to make retry() work for pipelines too
2020-12-04 17:31:27 +01:00
LemonBoy
2282eb1be1
ci: Use -nv flag for wget
...
-nv, --no-verbose turn off verboseness, without being quiet
2020-12-04 13:11:45 +01:00
LemonBoy
77031baf98
ci: Prevent some more CI failures
...
Many times the CI pipeline fails in the early stages because the APT
repo for LLVM is being updated.
Add a retry mechanism for some more APT commands.
2020-12-04 13:11:45 +01:00
LemonBoy
471e26425a
ci: Retry apt-get install at most three times
...
Try harder instead of failing after the first invocation fails.
2020-12-02 12:14:11 +01:00
Frank Denis
7b9af0592d
Azure Pipelines CI: update msys2 to the current version
2020-11-15 00:27:18 +01:00
Frank Denis
bb14bd35bd
Update wasmtime to version 0.20
...
The version we were using in CI is now getting quite old, and we
want to make sure that the code we produce is compatible with
current versions of Wasmtime.
2020-11-04 20:28:54 +01:00
Andrew Kelley
81f5e1e667
ci: freebsd: skip non-native tests to save time
2020-10-28 22:59:23 -07:00
Andrew Kelley
fd3da3348c
ci: macos: rebuild zig1.o with stage1
...
see #6830 for details.
2020-10-28 16:31:59 -07:00
Andrew Kelley
a0f4606f32
ci: still build zig even though we are using (older) zig cc
2020-10-26 10:50:43 -07:00
Andrew Kelley
bbd1e122d4
ci: skip compile error tests on freebsd to save time
2020-10-25 17:29:10 -07:00
Andrew Kelley
198d1438ea
ci: fix regression from not building docs
...
0e4f7a8e3f
forgot to build the docs,
causing CI failures
2020-10-22 01:18:55 -07:00
Frank Denis
0e4f7a8e3f
MSVC CI: run tests individually ( #6751 )
...
This slightly reduces the amount of peak RSS needed, buying us more time until stage2 is shipping.
2020-10-21 22:40:41 -04:00
Andrew Kelley
477798b37e
ci: macos: unset ZIG_LIBC before testing
...
otherwise cross compiling gets incorrectly affected by the environment
variable.
2020-10-14 17:59:29 -07:00
Andrew Kelley
540364e6c1
ci: macos: update to new cache tarball
...
This tarball contains LLVM, Clang, LLD, Zig, and libz.a for macOS. This
is everything we need for the CI to produce a working Zig executable.
2020-10-14 17:36:43 -07:00
Andrew Kelley
bf8cc73cf3
ci: macos: take advantage of zig-bootstrap
2020-10-14 02:25:51 -07:00
Andrew Kelley
9e05f42fee
ci: macos: set the cross compile cmake option
...
This should avoid invoking llvm-config to work around a symbol
not found inside libstdc++, and plus it's technically more correct
anyway.
2020-10-12 22:32:14 -07:00
Andrew Kelley
92926c4331
ci: no space in vmImage I guess
2020-10-12 21:58:46 -07:00
Andrew Kelley
461792f9de
ci: update to macos 10.15 image
2020-10-12 21:53:13 -07:00
Andrew Kelley
68e6da7c00
CI: enable all the freebsd tests
2020-10-12 20:51:16 -07:00
Andrew Kelley
27b04d5905
disable the failing std lib freebsd tests
...
enable std lib freebsd tests on the CI
See #1759
2020-10-12 20:08:23 -07:00
Andrew Kelley
74e3ffa9b4
ci: update llvm 10 => 11
2020-10-12 18:38:28 -07:00
Andrew Kelley
682a29aefd
ci: stop testing mingw builds
...
Zig supports both Linux and Windows natively. Those are the main use
cases we are focusing on. Happy to accept mingw patches if they are
non-invasive, but we will not be hampering progress on the main use
cases with failing mingw CI builds.
2020-10-04 21:51:41 -07:00
Jakub Konka
0e2d858d69
Revert back to original Win CI install script
...
Since msys2/MSYS2-packages#2050 was fixed, we can now revert back to the
original install script.
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-04 11:53:07 +02:00
Andrew Kelley
d1e779cea8
ci: update azure msys base installer
...
hopefully resolves the CI failures
2020-10-03 17:33:51 -07:00
Andrew Kelley
7c0ee42385
CI: TERM=dumb to source hut
2020-09-29 12:10:38 -07:00
Andrew Kelley
561ed38f12
ci: drop the cmake patch for linux
...
hopefully they've solved the polly plugin thing by now on apt.llvm.org.
2020-09-21 12:40:19 -07:00
Andrew Kelley
a863d899e1
ci: undo mangled autocrlf files before building
2020-09-16 11:58:26 -07:00
Andrew Kelley
80d8515e3a
ci: disable git autocrlf
...
See also commit
2c8495b4bb
2020-09-16 10:49:43 -07:00
Andrew Kelley
95941c4e70
stage2: building glibc shared objects
...
* caching system: use 16 bytes siphash final(), there was a bug in the
std lib that wasn't catching undefined values for 18 bytes. fixed in
master branch.
* fix caching system unit test logic to not cause error.TextBusy on windows
* port the logic from stage1 for building glibc shared objects
* add is_native_os to the base cache hash
* fix incorrectly freeing crt_files key (which is always a reference to
global static constant data)
* fix 2 use-after-free in loading glibc metadata
* fix memory leak in buildCRTFile (errdefer instead of defer on arena)
2020-09-16 03:02:46 -07:00
Andrew Kelley
7ccfb08a93
ci: update the on_master_success secret to lavatech
2020-09-15 15:08:35 -07:00
Andrew Kelley
5e39ab4600
ci: disable some freebsd tests to save time
2020-09-14 21:11:34 -07:00
Andrew Kelley
44ef270de1
ci: use hut.lavatech.top for updating the download page
2020-09-14 19:37:59 -07:00
Andrew Kelley
01c24c4509
ci: enable std lib tests for freebsd
2020-09-14 18:22:16 -07:00
Andrew Kelley
8716fde7bc
ci: skip non native builds on windows to save time
2020-09-08 09:53:41 -07:00
Andrew Kelley
26140678a5
ci: skip compile error tests on Windows
...
We're up against the 6 hour limit so this is a time-saving workaround.
Compile error tests are generally not OS-specific so the coverage from
the other platforms should be sufficient.
2020-08-31 14:54:05 -07:00
Michael Dusan
05f80311bc
ci linux: bump qemu-5.1.0
2020-08-14 14:38:54 -04:00
Andrew Kelley
9b75091fd4
ci: update msys2 installer
2020-07-25 22:21:52 -07:00
Jakub Konka
a1d72fad81
Use -c flag in all s3cmd occurrences on Win
2020-07-24 14:35:48 +02:00
Jakub Konka
937c02f185
Re-apply temp msys2 python fix
...
Tweak `windows_upload` script to manually specify the config path
to `s3cmd`.
2020-07-24 09:19:51 +02:00
Jakub Konka
b7353240c7
Refactor macOS build script in Azure
...
We don't really want to rebuild the cache in Azure...
2020-07-24 06:29:50 +00:00
Andrew Kelley
56a21b7ec3
ci: undo the recent changes. maybe upstream fixed it
2020-07-23 23:26:24 -07:00
Andrew Kelley
b4d383a478
ci: looks like s3cmd wants a new path for the config file
...
Thanks Jakub Konka for exploring this.
2020-07-23 10:58:07 -07:00
Jakub Konka
9225763f8b
Add temporary fix to the CI on Win
...
Here's the [thread](https://github.com/msys2/MSYS2-packages/issues/2050 )
for reference.
2020-07-22 06:49:24 +00:00
xackus
2064e84cdd
ci: check langref.html for html errors
2020-07-08 19:34:44 +00:00
Andrew Kelley
489c31b6f5
azure ci: install tar and xz with pacman
2020-06-24 14:52:34 -04:00
Jonathan Marler
3a2cc5decf
azure-pipelines: fix msys2 install
2020-06-24 14:33:01 -04:00
Michael Dusan
c2f547f91f
ci linux: bump qemu-5.0.0-49ee115552
...
update qemu to upstream with mremap patch
2020-06-08 16:20:39 -04:00
Noam Preil
3b4e29f1ad
[CI] Use ninja on Azura and Drone
2020-05-29 13:34:15 -04:00
Jakub Konka
40812063cc
Disable tests requiring Wasmtime be default; require -Denable-wasmtime flag otherwise
2020-05-18 16:12:03 +02:00
Jakub Konka
bd9a616586
Skip WASI tests in drone and on FreeBSD
2020-05-18 16:10:54 +02:00
Jakub Konka
14510f412d
Download and unpack wasmtime on Linux
2020-05-18 16:10:32 +02:00
Jakub Konka
be796e40a3
Run WASI tests on Linux only
2020-05-18 16:10:14 +02:00
Michael Dusan
5fb8d7dcdc
ci linux: bump qemu-5.0.0-z2
...
closes #5245
see 1b41e31a5c
2020-05-02 04:39:36 -04:00
Michael Dusan
e97181e362
ci linux: bump qemu 5.0.0-rc4 → 5.0.0
2020-04-29 17:01:12 -04:00
Michael Dusan
79809a0e54
ci: bump static-qemu 5.0.0-rc3 → 5.0.0-rc4
2020-04-22 18:02:50 -04:00
emekoi
0744d93ed5
added CI job for mingw
2020-04-12 16:44:29 -04:00
Michael Dusan
57a2c5a63c
ci: bump static-qemu 5.0.0-rc1 → 5.0.0-rc2
2020-04-08 21:00:17 -04:00
Michael Dusan
deef063bbf
use static-qemu linux-x86_64 tarball
...
- no longer install qemu via apt-get
- wget hosted tarball, extract and prepend to path
2020-04-02 11:04:40 -04:00
Andrew Kelley
c7a3796734
ci: export master branch version for update-download-page
2020-03-31 14:54:13 -04:00
LemonBoy
ddda50a38d
ci: Delete workaround for #4822
2020-03-27 20:13:23 +01:00
Andrew Kelley
463b90b977
ci: fix aarch64 linux
...
This patch adds a workaround for #4822 , disables one failing langref
example, and enables the rest of the test suite.
You win some, you lose some.
2020-03-26 19:42:28 -04:00
Andrew Kelley
10223eaea0
ci: workaround for apt.llvm.org packaging bug
2020-03-22 17:03:53 -04:00
Andrew Kelley
40f4101802
ci: fix ubuntu package name for lld
2020-03-22 15:44:39 -04:00
Andrew Kelley
8d1659bb39
ci: again fix the cache tarball URLs
2020-03-22 15:35:54 -04:00
Andrew Kelley
adf5af1bc5
ci: update cache tarball URLs
2020-03-22 15:14:46 -04:00
Andrew Kelley
23c263776c
Merge remote-tracking branch 'origin/master' into llvm10
2020-03-22 15:09:29 -04:00
Andrew Kelley
153c6cf92e
ci: disable test-gen-h on sr.ht and drone
2020-03-20 21:33:37 -04:00
Andrew Kelley
656ba530d8
Merge remote-tracking branch 'origin/master' into llvm10
2020-03-13 15:17:53 -04:00
Andrew Kelley
214af69814
ci: remove workaround for FreeBSD upstream bug
2020-03-12 11:40:44 -04:00