aboutsummaryrefslogtreecommitdiff
path: root/ci
AgeCommit message (Collapse)Author
2022-07-21CI: stage3 coverage for test-translate-cAndrew Kelley
2022-07-21complete the drone pipeline runner type and platform oszc
2022-07-20CI: stage3 covers test-universal-libc and builds stage1Andrew Kelley
2022-07-20CI: increase stage3 test coverageAndrew Kelley
* Use a debug build of stage3 instead of a debug build of stage2 for our self-hosted compiler test coverage. * Move coverage from stage1 to stage3 for: - building self-hosted without LLVM - building self-hosted for 32-bit arm - test-compiler-rt - test-behavior - test-std - test-compare-output - test-asm-link - test-fmt
2022-07-20build.zig: remove deleted .cpp fileAndrew Kelley
2022-07-15ci: bump macOS image on Github Actions to macos-11Jakub Konka
The currently used image is getting deprecated and every user is advised to switch to either macos-11 or macos-12. The link to upstream issue/notification: https://github.com/actions/virtual-environments/issues/5583
2022-07-12wasm-linker: Implement linker tests (#12006)Luuk de Gram
* test/link: initial wasm support This adds basic parsing and dumping of wasm section so they can be tested using the new linker-test infrastructure. * test/link: all wasm sections parsing and dumping We now parse and dump all sections for the wasm binary format. Currently, this only dumps the name of a custom section. Later this should also dump symbol table, name, linking metadata and relocations. All of those live within the custom sections. * Add wasm linker test This also fixes a parser mistake in reading the flags. * test/link: implement linker tests wasm & fixes Adds several test cases to test the wasm self-hosted linker. This also introduces fixes that were caught during the implementation of those tests. * test-runner: obey omit_stage2 for standalone When a standalone test requires stage2, but stage2 is omit from the compiler, such test case will not be included as part of the test suite that is being ran. This is to support CI's where we omit stage2 to lower the memory usage.
2022-07-08CI: azure: update build.zig for LLVM 14Andrew Kelley
2022-07-08CI: update scripts to stage1 LLVM 14 tarballsAndrew Kelley
The previous tarballs were stage3 which is not quite ready for primetime yet.
2022-07-07CI: update scripts to new LLVM 14 tarballsAndrew Kelley
2022-07-05CI: fix wrong macos tarballAndrew Kelley
2022-07-04CI: update tarballs to LLVM 14Andrew Kelley
2022-06-30CI: update freebsd pkg install commandAndrew Kelley
2022-06-22link-tests: enable on macos CI host only for nowJakub Konka
2022-06-19macos: run test-cases single threaded in the CIJakub Konka
2022-06-12std: disable failing tests, add zig2 build test-std to CIVeikka Tuominen
2022-06-09stage2: use std.debug.Trace only when explicitly enabledAndrew Kelley
Because it bumps up the stack space requirements, which is making a test case fail on aarch64 drone CI.
2022-06-01CI: skip single-threaded tests on DroneAndrew Kelley
sure would be nice if they would just give us another hour of CI run time.
2022-06-01CI: skip non native ReleaseFast and ReleaseSafe tests on droneAndrew Kelley
Because we're hitting the 2 hour time limit.
2022-05-22Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by defaultJakub Konka
Prior to this change we would assume the ABI for Apple targets to be GNU which could result in subtle errors in LLVM emitting calls to non-existent system libc provided functions such as `_sincosf` which is a GNU extension and as such is not provided by macOS for example. This would result in linker errors where the linker would not be able to find the said symbol in `libSystem.tbd`. With this change, we now correctly identify macOS (and other Apple platforms) as having ABI `unknown` which translates to unspecified in LLVM under-the-hood: ``` // main.ll target triple = "aarch64-unknown-macos-unknown" ``` Note however that we never suffix the target OS with target version such as `macos11` or `macos12` which means we fail to instruct LLVM of potential optimisations provided by the OS such as the availability of function `___sincosf_stret`. I suggest we investigate that in a follow-up commit.
2022-05-13migrate runtime safety tests to the new test harnessAndrew Kelley
* migrate runtime safety tests to the new test harness - this required adding compare output / execution support for stage1 to the test harness. * rename `zig build test-stage2` to `zig build test-cases` since it now does quite a bit of stage1 testing actually. I named it this way since the main directory in the source tree associated with these tests is "test/cases/". * add some documentation for the test manifest format.
2022-05-07CI: fix universal libc step nameAndrew Kelley
This was a merge conflict that went undetected.
2022-05-07Merge pull request #11592 from ziglang/stage3-macos-linkerAndrew Kelley
Sema: solve a false positive "depends on itself"
2022-05-06flatten lib/std/special and improve "pkg inside another" logicAndrew Kelley
stage2: change logic for detecting whether the main package is inside the std package. Previously it relied on realpath() which is not portable. This uses resolve() which is how imports already work. * stage2: fix cleanup bug when creating Module * flatten lib/std/special/* to lib/* - this was motivated by making main_pkg_is_inside_std false for compiler_rt & friends. * rename "mini libc" to "universal libc"
2022-05-07macho: share traditional codepaths with stage2+llvm backendJakub Konka
2022-05-06CI: macos: disable stage2 test-behaviorAndrew Kelley
stage2 on macOS is not yet capable of passing these tests. Such improvements will be done in a follow-up change.
2022-05-06CI: macos: stage2 zig build test-behaviorAndrew Kelley
2022-05-05CI: add non-LLVM backends to the test matrixAndrew Kelley
We can't yet run the behavior tests with stage3, but at least we can run them with stage2, and we can use the proper test matrix. This commit also adds use_llvm and ofmt to the zig build system.
2022-05-04test: move compile errors and incremental tests into common dirJakub Konka
2022-04-28ci: ignore fmt errors in test/incremental/Jakub Konka
2022-04-21CI: additionally test building stage3Andrew Kelley
2022-03-31CI: update CLI invokationAndrew Kelley
243afdcdf57d74a184784551aebe58062e5afc03 removed `-Dskip-compile-errors` and added `-Dskip-stage`.
2022-03-25zig fmt: Add `--exclude` argument to skip dir/fileCody Tapscott
This change adds a "--exclude" parameter to zig format, which can be used to make sure that it does not process certain files or folders when recursively walking a directory. To do this, we simply piggy-back on the existing "seen" logic in zig fmt and mark these files/folders as seen before processing begins.
2022-03-17CI: explicitly pass -fno-LLVMAndrew Kelley
Needed because of previous commit.
2022-03-06ci: azure: update to newest LTS ubuntuAndrew Kelley
2022-03-06CI: additionally test wasm32-wasi with LLVM backendAndrew Kelley
2022-02-21Use lowercase in shasum for windows buildsCarlos Zúñiga
2022-02-17ci: linux: re-use cmake config for finding LLVMAndrew Kelley
2022-02-17CLI: resolve system libs into static librariesAndrew Kelley
using the provided -L directories before checking if we need to integrate with system library paths. This prevents false positive of invoking system cc to find native paths when in fact all dependencies are satisfied by -L (or --search-prefix to zig build).
2022-02-17CI: simplify linux scriptAndrew Kelley
* build.zig: remove detour through zig0. I'll add it back as an option later. This means you can build stage1 with a freshly built zig without detouring through zig0 again. * remove unused file windows_script.bat * drone.yml: remove unnecessary steps * ninja doesn't need a jobs parameter * build the release version of zig with zig build instead of cmake. * build stage2 with -Dstatic-llvm -Duse-zig-libcxx
2022-02-17CI: more stage2 test coverageAndrew Kelley
* Test everything on the Linux CI even if we can't run it, because it's our fastest machine. * Test stage2 using a build of stage2 (instead of using `-fno-stage1`) so that compiler-rt is also built with stage2. * Additionally test running x86_64-macos on the macOS CI, both the LLVM backend and x86_64 backend.
2022-02-16ci: azure: split build-and-test step (#10853)Hadrien Dorio
replace the .bat script by a pwsh script
2022-02-16ci: use zig-bootstrap for windowsAndrew Kelley
2022-02-15ci: update x86_64-linux tarballsAndrew Kelley
The updated docker images has LLVM, LLD, Clang updated to 13.0.1 and Zig updated to 0.9.1.
2022-02-15CI: update macos and freebsd tarballsAndrew Kelley
2022-02-15Merge pull request #10893 from joachimschmidt557/stage2-aarch64Jakub Konka
stage2 AArch64: get zig test working; enable behavior tests
2022-02-14CI: update download page and langref for 0.9.1Andrew Kelley
2022-02-14ci: add aarch64-linux behavior testsjoachimschmidt557
2022-02-12CI: additionally test stage2 LLVM backend targeting aarch64-linuxAndrew Kelley
2022-02-12Revert "CI: upgrade both host and target tarballs to llvm 13.0.1 x86_64-macos"Jakub Konka
This reverts commit 1072d8a0658d76415124ef6aac6842283316f243.