Andrew Kelley
1a8987fe7c
CI: additionally test stage2 LLVM backend targeting aarch64-linux
2022-02-12 11:18:23 +01:00
Jakub Konka
beb275b371
Revert "CI: upgrade both host and target tarballs to llvm 13.0.1 x86_64-macos"
...
This reverts commit 1072d8a065
.
2022-02-12 11:17:41 +01:00
Jakub Konka
1072d8a065
CI: upgrade both host and target tarballs to llvm 13.0.1 x86_64-macos
2022-02-12 11:01:10 +01:00
Andrew Kelley
3fdbc3bba8
CI: upgrade x86_64-macos tarball to llvm 13.0.1
2022-02-12 01:09:13 -07:00
Andrew Kelley
a5a7f0ff00
CI: upgrade x86_64-macos tarball to llvm 13.0.1
2022-02-11 15:57:44 -07:00
Andrew Kelley
44b5fdf326
Revert "ci: azure: split build-and-test step"
...
This reverts commit 846eb70182
.
This did not properly translate the upload portion of the CI script to
powershell which broke our CI pipeline.
2022-02-09 18:26:56 -07:00
Andrew Kelley
274b9d5c1d
ci: work around azure networking issue
2022-02-09 16:42:15 -07:00
Andrew Kelley
92cb17a331
CI: windows: update env var names
2022-02-09 10:41:12 -07:00
Hadrien Dorio
846eb70182
ci: azure: split build-and-test step
...
replace the .bat script by a pwsh script
2022-02-08 19:47:46 -05:00
Andrew Kelley
aa902c7042
ci: azure: update to newer msys2 release
2022-01-29 11:28:57 -07:00
Andrew Kelley
59315463f2
ci: add test coverage for self-hosted arm and x86_64 backends
2022-01-06 22:57:29 -05:00
Andrew Kelley
ea913846c2
ci: add 0.9.0 to downloads json
2021-12-20 15:18:25 -07:00
Michael Dusan
a711fcbbfa
ci: linux: supply on_master_sucess with VERSION
...
- move on_master_success to the package step
- add required secret availability for packaging
This replaces a1b79ea585
.
2021-12-06 23:13:06 -08:00
Luuk de Gram
9e03cf9489
wasm: Initial behavior tests succeeding
...
- Correctly load slice value on stack
- Implement WrapErrorUnionErr and payload
- Implement trunc, fix sliceLen and write undefined
- Implement slice as return type and argument
Note: This also fixes a memory leak for inferred error sets, and for usingnamespace
2021-12-05 12:19:01 -08:00
Michael Dusan
a1b79ea585
ci: linux: pass VERSION on_master_success
...
Cache the VERSION value for use with linux_on_mster_success.
This replaces 117c0460d3
.
2021-12-05 00:31:59 -08:00
Andrew Kelley
f7cbd92e6c
Revert "Merge pull request #10270 from Luukdegram/behaviour-tests"
...
This reverts commit 725267f7c2
, reversing
changes made to 2dae860de3
.
This test is failing:
```zig
pub fn main() u8 {
var e = foo();
const i = e catch 69;
return i;
}
fn foo() anyerror!u8 {
return 5;
}
```
It's returning 69 instead of the expected value 5.
2021-12-04 21:55:50 -07:00
Michael Dusan
117c0460d3
ci: linux: pass VERSION on_master_success
2021-12-04 20:28:26 -08:00
Andrew Kelley
725267f7c2
Merge pull request #10270 from Luukdegram/behaviour-tests
...
Stage2: Initial behavior tests succeeding
2021-12-04 18:16:05 -08:00
Andrew Kelley
daa3e0bbb4
ci: fix update-download-page and remove bashism
2021-12-04 14:20:46 -07:00
Luuk de Gram
74a5f4d848
wasm: Initial behavior tests succeeding
...
Note: This also fixes a memory leak for inferred error sets, and for usingnamespace
2021-12-04 21:17:17 +01:00
Andrew Kelley
e81fda9823
ci: make the on_master_success script fail on missing args
2021-12-03 20:34:54 -07:00
Andrew Kelley
b24cbecdb2
zig build: promote qemu, wine, wasmtime, darling, and rosetta
...
from zig-specific options to generally recognized zig build options that
any project can take advantage of. See the updated usage text for more
details.
2021-12-02 15:46:22 -07:00
Lee Cannon
1093b09a98
allocgate: renamed getAllocator function to allocator
2021-11-30 23:32:47 +00:00
Lee Cannon
75548b50ff
allocgate: stage 1 and 2 building
2021-11-30 23:32:47 +00:00
Lee Cannon
85de022c56
allocgate: std Allocator interface refactor
2021-11-30 23:32:47 +00:00
Jakub Konka
2ca5a859e9
Force static libncurses in CMakeLists when static zig on macos
...
Add additional search paths pointing at homebrew prefixes as Apple
doesn't ship a static libncurses for linking - only a stub for dynamic
linking `libncurses.tbd`.
2021-11-28 21:10:33 -08:00
Andrew Kelley
2991e3f66b
ci: add coverage for building stage2 for arm-linux-musleabihf
2021-11-21 19:50:20 -07:00
Andrew Kelley
c715d512cb
CI: additionally run stage2 behavior tests with -ofmt=c
2021-11-09 16:12:57 -07:00
Michael Dusan
a7d215759e
ci: fully activate ci.ziglang.org linux
...
- disable azure/linux
- split probe/build/test steps for log clarity
- add package step; enabled only when master/pull
- add on-master-success pipeline; enabled only when master/pull
2021-11-08 13:45:03 -05:00
Andrew Kelley
4acd8920d8
ci: don't print env because there will be secrets there
2021-11-08 11:27:02 -07:00
Michael Dusan
325bae7fc0
ci: add new linux pipeline
...
A new zsf-hosted server is being brought online.
This should be enough for linux build, test and packaging pipeline.
Currently this pipeline does not not post artifacts.
2021-11-02 10:44:01 -04:00
Robin Voetter
15a0b30d8e
ci: disable macos stage 2 tests
2021-10-17 22:46:36 +02:00
Andrew Kelley
7f006287ae
Merge pull request #9878 from pfgithub/patch-4
...
Add line numbers to langref
2021-10-12 14:21:28 -04:00
pfg
2e244c90b3
update ci script to not error for empty elements
2021-10-11 23:15:03 -04:00
Michael Dusan
4e590fadb5
ci drone: enable more testsuite
...
Upstream LLVM fixes #8597 , no longer need `-Dskip-debug` and others.
Additionally, due to the nature of drone.io server pool, it is
beneficial to know which aarch64 CPU brand is in use.
- drop `-Dskip-debug` and others
- invoke `lscpu` prior to build
- enable more testsuite consistent with ci azure
- remove workaround for (already closed) #6830
closes #8597
2021-10-04 19:18:19 -04:00
Andrew Kelley
c7b32eb99a
ci: windows: update tar
command line parameter order
...
you have got to be kidding me
2021-10-01 22:27:16 -07:00
Andrew Kelley
86bb09a0ff
ci: update macos tarballs
...
These bring in a bug fix to libcxx.zig that is currently causing the CI
to fail.
2021-10-01 18:32:19 -07:00
Andrew Kelley
210ef5af8e
ci: windows: adjust tar workaround
...
tar does not properly implement the -k feature, so don't use it.
It incorrectly reports "file exists" when the expected behavior is to
leave the existing file alone.
2021-10-01 18:07:50 -07:00
Andrew Kelley
acb0a87158
ci: windows: workaround for tar
symlink behavior
2021-10-01 17:18:32 -07:00
Andrew Kelley
43e3734d3b
ci: macos arm64 script uses release build of zig
...
even for the host. This prevents a dependency on "dump" functions of
LLVM, which are not included in the tarballs used for the CI.
2021-10-01 16:53:42 -07:00
Andrew Kelley
9bf10b1018
ci: update windows tarballs to llvm 13
2021-10-01 16:53:33 -07:00
Andrew Kelley
7350cb2fc7
ci: update tarballs for LLVM 13
...
NetBSD CI is disabled because it is not yet supported in
zig-bootstrap. Once NetBSD has proper zig-bootstrap support, it can be
re-enabled.
Windows is not solved here yet; will be pushing a separate commit for
that.
2021-10-01 16:07:42 -07:00
Andrew Kelley
3eb729b442
Merge remote-tracking branch 'origin/master' into llvm13
2021-09-30 21:38:04 -07:00
Andrew Kelley
60b6e74468
ci: fix typo introduced in earlier commit
...
c2a7542df5
introduced a typo in the linux
CI script.
2021-09-28 09:50:25 -07:00
Andrew Kelley
c2a7542df5
ci: azure: run build steps independently to save ram
...
Azure is hitting OOM on test-toolchain. This commit is trying to
coast for another week until we switch to Drone CI for this job.
2021-09-27 21:39:27 -07:00
Josh Soref
664941bf14
Spelling corrections ( #9833 )
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2021-09-24 13:39:20 -04:00
Michael Dusan
cc4d38ed57
ci linux: bump qemu-6.1.0.1
...
closes #8653
2021-09-23 21:22:53 -04:00
Andrew Kelley
dc9d76b630
ci: go back to passing state for linux
...
This commit reverts 6d37ae95ed
and
8f8294a809
. I don't know why they caused a
failure but that investigation can happen while the CI is green.
2021-09-16 16:40:06 -07:00
Andrew Kelley
6d37ae95ed
build.zig: support -Duse-zig-libcxx
...
This supports the case when it is known that LLVM, Clang, LLD were built
with Clang (or `zig c++`). This commit updates the Linux CI script to
pass this since we build using a zig tarball.
2021-09-16 13:09:32 -07:00
Andrew Kelley
8f8294a809
ci: linux: enable LLVM stage2 tests
2021-09-16 11:21:56 -07:00
Andrew Kelley
f3ebfcae38
Merge remote-tracking branch 'origin/master' into llvm13
...
Conflicts:
* cmake/Findclang.cmake
* cmake/Findlld.cmake
* cmake/Findllvm.cmake
In master branch, more search paths were added to these files with "12"
in the path. In this commit I updated them to "13".
* src/stage1/codegen.cpp
* src/zig_llvm.cpp
* src/zig_llvm.h
In master branch, ZigLLVMBuildCmpXchg is improved to add
`is_single_threaded`. However, the LLVM 13 C API has this already, and
in the llvm13 branch, ZigLLVMBuildCmpXchg is deleted in favor of the C
API. In this commit I updated stage2 to use the LLVM 13 C API rather
than depending on an improved ZigLLVMBuildCmpXchg.
Additionally, src/target.zig largestAtomicBits needed to be updated to
include the new m68k ISA.
2021-09-15 14:51:08 -07:00
Jonathan Marler
e5fd45003e
azure pipeline fix removal of recently run exe
...
The following is an azure failure that occured Sep 13:
del : Cannot remove item D:\a\1\s\sfx.exe: The process cannot access the file 'D:\a\1\s\sfx.exe' because it is being used by another process.
Windows will keep a hold of recently run exeutables even after their process has exited. To avoid this I've just removed the deletion of the exe file. It's about 70 MB so it's probably OK.
2021-09-15 13:47:09 -04:00
Andrew Kelley
2b90e2c284
ci: azure: update to newer msys2 release
2021-09-15 10:32:33 -07:00
Andrew Kelley
501e6cf2f3
ci: add 0.8.1 release to download page
2021-09-07 14:36:08 -07:00
Andrew Kelley
7efca2e6f5
Merge remote-tracking branch 'origin/master' into llvm13
2021-08-31 18:44:15 -07:00
Andrew Kelley
75263e160e
CI: update Linux and macOS tarballs to LLVM 12.0.1
2021-08-31 16:39:25 -07:00
Andrew Kelley
a69b86003c
update CI scripts to llvm 13 rc1
2021-08-15 23:11:01 -07:00
Carlos Zúñiga
aad4598367
ci: remove extra zig directory in windows builds
...
From $prefix/lib/zig/std/std.zig to $prefix/lib/std/std.zig
2021-08-03 08:49:18 +03:00
Jakub Konka
159cd528b1
Add -Denable-macos-sdk explicit flag to build.zig
...
This way, we can explicitly signal if a test requires the presence
of macOS SDK to build. For instance, when testing our in-house
MachO linker for correctly linking Objective-C, we require the
presence of the SDK on the host system, and we can enforce this
with `-Denable-macos-sdk` flag to `zig build test-standalone`.
2021-08-02 13:41:58 -04:00
Andrew Kelley
c47b46fc8d
CI: enable stage2 behavior test coverage
2021-07-28 16:00:49 -04:00
Luna
3e8394776a
ci: enable netbsd tarballs
...
This reverts commit 3063f0a5ed
.
2021-07-12 21:44:38 -04:00
Andrew Kelley
3063f0a5ed
ci: disable netbsd tarballs until the false positives stop
2021-07-11 22:28:03 -07:00
Andrew Kelley
a886374df4
ci: netbsd fixups and general cleanup
...
* remove unused download page html. It's now handled in the
www.ziglang.org website repo.
* add netbsd to the downloads index.json file that we send to
the www.ziglang.org website repo.
* shallow clone the website repo to avoid downloading old copies of
data.js unnecessarily.
2021-07-11 22:13:26 -07:00
Luna
c28b227d0b
ci: add scripts for netbsd
2021-07-11 22:09:12 -07:00
Andrew Kelley
96ebf9396f
ci: no need for --ast-check
...
since zig will now run AstGen even when using the stage1 backend.
2021-06-23 10:44:46 -07:00
Andrew Kelley
e125ead2b1
ci: remove confusing message now that --ast-check is added
...
This extra message was intended to help contributors by clarifying
what to do when they hit a `zig fmt` failure, but now AST errors are
also emitted here and the message may actually introduce confusion.
Remove it for now.
2021-06-15 14:27:56 -07:00
Andrew Kelley
408d8df86c
ci: azure: update to newer msys2 release
2021-06-14 12:03:10 -07:00
Andrew Kelley
193c529b8c
CLI: rename --override-lib-dir to --zig-lib-dir
...
This breaking change disambiguates between overriding the lib dir when
performing an installation with the Zig Build System, and overriding the
lib dir that the Zig installation itself uses.
2021-06-14 11:33:27 -07:00
Veikka Tuominen
e63ff4f1c1
add ast-check flag to zig fmt, fix found bugs
2021-06-14 00:16:40 +03:00
jacob gw
b9f07b7ac2
format zig files and add formatting check to ci
2021-06-13 22:33:39 +03:00
Jakub Konka
b0ee911c23
wasi: always grant fd_readdir right
...
Since v0.23 release of Wasmtime, if we want to iterate a directory
Y then directory Y needed to have been granted `fd_readdir` right.
However, it is now also required for directory X to carry `fd_readdir`
right, and so on, up-chain all the way until we reach the preopen
(which possesses all rights by default).
This caused problems for us since our libstd implementation is more
fine-grained and allowed for parent dirs not to carry the right while
allow for iterating on its children. My proposal here is to always
grant `fd_readdir` right as part of
`std.fs.Dir.OpenDirOptions.access_sub_paths`. This seems to be the
approach taken by Rust also, plus we should be justified to take this
approach since WASI is experimental and snapshot1 will be discontinued
eventually and replaced with a new approach to access management
that will require a complete rewrite of our libstd anyhow.
2021-06-08 05:48:33 +02:00
Andrew Kelley
ddf9c40bc1
ci: fix 0.8.0 release date
2021-06-04 16:33:50 -07:00
Andrew Kelley
c7b68ce0f8
ci: fix aarch64-macos download tarball filename
2021-06-04 16:21:01 -07:00
Andrew Kelley
555805e0d5
ci: update download page releases
2021-06-04 15:33:18 -07:00
Andrew Kelley
05cd8936c8
ci: drone: use zig-bootstrap tarball instead of system toolchain
2021-06-02 17:03:11 -07:00
Andrew Kelley
16c5cbab0c
ci: update x86_64-freebsd tarball
...
to llvm 12.0.1-rc1, and -DLLVM_ENABLE_ZLIB=FORCE_ON
2021-06-01 23:26:53 -07:00
Jakub Konka
0ad534b392
ci: update x86_64-macos and aarch64-macos tarballs
...
to llvm 12.0.1-rc1, and -DLLVM_ENABLE_ZLIB=FORCE_ON
2021-05-30 08:46:35 +02:00
Andrew Kelley
e46c55edbd
ci: update x86_64-linux, aarch64-linux, and windows tarballs
...
to llvm 12.0.1-rc1, and -DLLVM_ENABLE_ZLIB=FORCE_ON
2021-05-29 20:18:02 -07:00
Andrew Kelley
9910bfa6d8
ci: use a different ssh private key to deploy the website
...
This changes the deploy key to a different one on www.ziglang.org so
that we can test notifications.
2021-05-19 21:36:48 -07:00
Andrew Kelley
d228d86059
ci: drone: refresh docker image with latest alpine
...
hopefully resolves the failures we've been seeing recently
2021-05-18 11:29:14 -07:00
Michael Dusan
04d95ea419
ci linux: bump qemu-5.2.0.1
...
- apply patch for qemu-user syscall do_sendrecvmsg_locked
- see #8750
2021-05-17 12:06:25 -04:00
Michael Dusan
fb8527b289
azure: bump timeout for macos-arm64
2021-05-12 06:38:01 -04:00
Jakub Konka
53acb54fad
Bump zig-bootstrap and wasmtime versions in linux CI ( #8738 )
...
* Bump zig-bootstrap and wasmtime versions in linux CI
* Revert wasm stage2 test fixup; point to issue
2021-05-12 09:56:55 +02:00
Isaac Freund
f8cf106fc9
ci: unset CC/CXX before make install on macos arm64
...
Having these set causes zig's native libc detection code to fail.
2021-05-11 21:30:13 +02:00
Jakub Konka
b7a6a251a0
Tweak macos_arm64_script to use bootstrapped zig
2021-05-10 18:42:01 +02:00
Jakub Konka
603242fa86
Use zig-bootstrapped x86_64 macos compiler in CI
2021-05-10 13:55:48 +02:00
Andrew Kelley
5622f9382c
Merge pull request #8657 from jedisct1/ci-split
...
Azure CI: Test std.* and the rest separately
2021-05-03 17:36:51 -04:00
Luna
c47028cd02
ci: freebsd: use py38-s3cmd
2021-05-02 17:24:17 -04:00
Frank Denis
9a637f81e0
Restore the CI logging as before
2021-05-02 02:07:59 +02:00
Frank Denis
3e389d01ed
CI: no need to try qemu and wasmtime on macOS builds
2021-05-01 00:38:54 +02:00
Frank Denis
b49d99b246
Azure CI: Test std.* and the rest separately
...
On CI, we have been running into OOM issues when running the test
suite on Windows for quite some time.
Unfortunately, we are very close to having the same issues on Linux
as well. Some additional comptime work immediately makes these builds
fail as well.
Add a new `test-toolchain` step, that tests everything except `std.*`
and documentation.
On CI, call `test-toolchain`, `test-std` and `docs` separately
instead of the `test` big hammer that emcompasses all of them.
Change the special case we made for Windows to the same code as other
platforms.
This is a stopgap measure that stage2 will eventually make useless.
Until then, it gives us some headroom.
Change `linux_script` by the way to only output the log of failing
steps. This shrinks the Linux CI log from a bazilion lines down to
something more humanely manageable.
2021-04-30 23:41:28 +02:00
LemonBoy
0340ed3a9e
build: Re-add test-translate-c and test-run-translated-c
2021-04-25 17:02:48 +02:00
Michael Dusan
37b05742ff
ci: drone disable debug test suite for aarch64
...
Temporary workaround for #8597 until upstream fix lands.
- add `zig build -Dskip-debug` option
- build a release-fast build.exe
- disable test suite build modes { debug, release-small, release-safe }
- enable passing test-* components
- use parallel pipeline steps for tests
2021-04-25 00:02:36 -04:00
Andrew Kelley
235aa8c078
ci: drone: don't skip stage2 tests
...
the stalls seem to be happening for a different reason
2021-04-16 09:57:31 -07:00
Andrew Kelley
2b2920f599
ci: drone: disable stage2 tests
...
See #8545
2021-04-15 16:20:43 -07:00
Andrew Kelley
c795e82cbc
ci: windows: update to llvm 12 msvc tarball
2021-04-15 12:40:22 -07:00
Andrew Kelley
c49fe52cb1
ci: update macos tarball to llvm 12
2021-04-15 11:27:02 -07:00
Andrew Kelley
a38042e3ac
ci: windows: proper flags to zig build
2021-04-15 02:02:36 -07:00
Andrew Kelley
fa633a658f
ci: windows: try the dev kit strategy
2021-04-15 01:44:17 -07:00
Andrew Kelley
4a1d3465cc
ci: windows: ranlib take 2
2021-04-15 01:22:42 -07:00
Andrew Kelley
3266f326de
ci: windows: better -DCMAKE_RANLIB option
2021-04-15 01:14:33 -07:00
Andrew Kelley
996193c228
ci: freebsd: don't try to compile with zig cc
2021-04-15 00:51:26 -07:00
Andrew Kelley
a680c7ba98
ci: windows: use llvm-ar.exe from the tarball
2021-04-15 00:41:30 -07:00
Andrew Kelley
c59241bda0
ci: better handle of -mcpu
2021-04-15 00:18:21 -07:00
Andrew Kelley
553fbeba82
ci: better target triple and mcpu cmake args
2021-04-14 23:49:16 -07:00
Andrew Kelley
85755c51d5
ci: freebsd: set the target triple
2021-04-14 23:35:51 -07:00
Andrew Kelley
df319db058
ci: windows: install git
2021-04-14 23:18:03 -07:00
Andrew Kelley
3967823f3a
ci: freebsd: pass -DZIG_USE_LLVM_CONFIG=OFF
2021-04-14 23:17:08 -07:00
Andrew Kelley
ee42178b43
ci: aarch64-linux: disable run-translated-c tests
...
See #8537
2021-04-14 23:10:51 -07:00
Andrew Kelley
45eb9554c4
ci: windows: try using zig-bootstrap to build zig
2021-04-14 23:03:16 -07:00
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
Andrew Kelley
96c07674fc
Merge remote-tracking branch 'origin/master' into llvm10
2020-03-07 12:18:41 -05:00
Andrew Kelley
6b069f5c8c
Revert "put FreeBSD CI in timeout for misbehavior"
...
This reverts commit c0c9303bd6
.
Thanks to commit c08444b33f
we can now
re-enable FreeBSD in the CI.
2020-03-05 23:37:29 -05:00
Michael Dusan
c08444b33f
srht: workaround FreeBSD fiasco
2020-03-05 19:47:28 -05:00
Andrew Kelley
3178807657
Merge remote-tracking branch 'origin/master' into llvm10
2020-03-04 15:35:46 -05:00
Andrew Kelley
c0c9303bd6
put FreeBSD CI in timeout for misbehavior
...
FreeBSD is dealing with some weird upstream bug right now. We can try to
re-enable this when it is fixed.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244549
very naughty
2020-03-03 21:32:01 -05:00
Andrew Kelley
f33bf48af7
Merge remote-tracking branch 'origin/master' into llvm10
2020-02-25 16:30:40 -05:00
Andrew Kelley
058f38220a
enable passing freebsd tests
...
See #3210 and #4455
2020-02-14 12:00:38 -05:00
Andrew Kelley
d0b12d7726
Merge remote-tracking branch 'origin/master' into llvm10
2020-02-03 17:30:38 -05:00
Andrew Kelley
14d9582e9a
ci: don't rely on sourcehut's pkg system
2020-01-30 10:23:00 -05:00
Andrew Kelley
211e1b1ced
ci: update to llvm 10
2020-01-22 17:54:58 -05:00
Andrew Kelley
fbe6af81fd
Merge remote-tracking branch 'origin/master' into llvm10
2020-01-16 13:01:36 -05:00
Andrew Kelley
9daa7e1e19
CI: update llvm apt sources to correct ubuntu version
...
In the pipelines.yml file we request Ubuntu 18.04 Bionic Beaver, but in
the script we were still using the Xenial apt.llvm.org sources.
2019-12-20 13:40:07 -05:00
Andrew Kelley
81f1f72197
ci: skip non native tests for aarch64
...
We've been hitting timeouts on this service. Once zig build gains
parallel processing support, we can probably enable more tests.
2019-12-12 15:11:59 -05:00
Andrew Kelley
2a7103ca34
ci: update macos to fresh llvm+clang tarball cache
2019-12-10 01:32:45 -05:00
Andrew Kelley
fc1373a85d
ci: update sr.ht to use alpine/latest, more reliable
2019-12-02 10:48:12 -05:00
Andrew Kelley
6b241d7b5d
ci: --no-mime-magic
2019-11-25 14:58:45 -05:00
Andrew Kelley
9b0536e6f4
ci: add srht oauth token to drone cloud script
2019-11-07 19:00:52 -05:00
Andrew Kelley
e2a0bea65f
ci: bump ubuntu from 16.04 to 18.04
2019-11-07 16:18:42 -05:00
Andrew Kelley
711520d935
ci: workaround PATH apparently not working
2019-11-04 00:07:27 -05:00
Andrew Kelley
b7747653f2
ci: more fixes for update_download_page script
2019-11-03 22:01:59 -05:00
Andrew Kelley
0860b1919b
ci: work around pip install permission denied
2019-11-03 21:44:39 -05:00
Andrew Kelley
1a820067d0
ci: hail mary running git.exe in the windows bat file
2019-11-03 18:58:54 -05:00
Andrew Kelley
96984e3033
ci: avoid leaking oauth access token
2019-11-03 14:55:21 -05:00
Andrew Kelley
629b91da61
ci: use heredoc and alpine/edge for faster sr.ht job
2019-11-03 14:20:35 -05:00
Andrew Kelley
5001faa690
ci: stop assuming that azure will complete last
...
Each of the 3 CI services now trigger a sr.ht build via
the on_master_success script. The sr.ht build checks if all builds have
completed successfully by trying to download the JSON file for the
particular version. If all builds have completed successfully then this
sr.ht job will update the download page.
2019-11-03 14:00:28 -05:00
Andrew Kelley
fafd1fd480
ci: disable test-compare-output on aarch64
2019-10-26 18:48:42 -04:00
Andrew Kelley
ee21bab253
ci: -Dskip-release for aarch64 to hit 1 hour time limit
2019-10-26 13:14:54 -04:00
Andrew Kelley
05fd59e06a
ci: enable more passing tests on aarch64-linux
2019-10-26 12:09:15 -04:00
Andrew Kelley
952aa7a9c1
ci: perform git config inside zig git repo dir
2019-10-25 04:26:22 -04:00
Andrew Kelley
c5e26b8673
ci: force git name-rev to be 9 on all targets
2019-10-25 03:27:00 -04:00
Andrew Kelley
aa2607a109
Merge branch 'ci-drone-cloud'
2019-10-24 21:41:14 -04:00
Andrew Kelley
6eba65bd7f
ci: add aarch64 to download page
2019-10-24 21:40:26 -04:00
Andrew Kelley
bf5be65be6
disable not working stuff
2019-10-24 21:13:47 -04:00
Andrew Kelley
f6367a0751
ci: build docs, fix PR logic
2019-10-24 20:47:50 -04:00
Andrew Kelley
695a746aa0
ci: use x86_64 namespaced docker image
...
I took a risk that docker had implemented namespacing with regards to
architectures correctly, but of course they didn't. So the CI docker
image for x86_64 was clobbered by an aarch64 image with the same name.
Now we're doing arch namespaces with the tag name, so here's the x86_64
one.
2019-10-24 20:46:07 -04:00
Andrew Kelley
551e70dcb2
ci: add s3 secrets to drone config
2019-10-24 19:46:11 -04:00
Andrew Kelley
43f5054a90
ci: drone tests only aarch64 with docker image
2019-10-24 19:46:11 -04:00
Andrew Kelley
0e9f32d42b
disable static build for now until the docker image is ready
2019-10-24 19:46:11 -04:00
Andrew Kelley
099532af87
add Drone Cloud CI configuration
2019-10-24 19:46:11 -04:00
Andrew Kelley
93295f3b13
remove -DZIG_FORCE_EXTERNAL_LLD=ON
...
Looks like the patch we need is in llvm trunk, not llvm 9.
2019-10-16 21:16:06 -04:00