| author | |
| committer | |
| log | a65ba6c85a6c01aecf28e39ba6717fea15757521 |
| tree | 063509c1f6f0ab1924a789d2ded08edd08f4c3dc |
| parent | 36e618aef138e9c3612a74f144358cb9574e695f |
This service stopped working two days ago for unknown reasons. Until it
is determined how to get it working again, or we switch to a different
CI provider for aarch64, this CI test coverage is disabled so that
we can continue to use the CI for other targets.14 files changed, 6 insertions(+), 354 deletions(-)
ci/drone/drone.yml deleted-98| ... | ... | @@ -1,98 +0,0 @@ |
| 1 | --- | |
| 2 | kind: pipeline | |
| 3 | type: docker | |
| 4 | name: test-aarch64-linux-musl | |
| 5 | ||
| 6 | platform: | |
| 7 | os: linux | |
| 8 | arch: arm64 | |
| 9 | ||
| 10 | steps: | |
| 11 | - name: build | |
| 12 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 13 | commands: | |
| 14 | - ./ci/drone/linux_script_build | |
| 15 | ||
| 16 | - name: behavior | |
| 17 | depends_on: | |
| 18 | - build | |
| 19 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 20 | commands: | |
| 21 | - ./ci/drone/test_linux_behavior | |
| 22 | ||
| 23 | - name: std_Debug | |
| 24 | depends_on: | |
| 25 | - build | |
| 26 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 27 | commands: | |
| 28 | - ./ci/drone/test_linux_std_Debug | |
| 29 | ||
| 30 | - name: std_ReleaseSafe | |
| 31 | depends_on: | |
| 32 | - build | |
| 33 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 34 | commands: | |
| 35 | - ./ci/drone/test_linux_std_ReleaseSafe | |
| 36 | ||
| 37 | - name: std_ReleaseFast | |
| 38 | depends_on: | |
| 39 | - build | |
| 40 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 41 | commands: | |
| 42 | - ./ci/drone/test_linux_std_ReleaseFast | |
| 43 | ||
| 44 | - name: std_ReleaseSmall | |
| 45 | depends_on: | |
| 46 | - build | |
| 47 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 48 | commands: | |
| 49 | - ./ci/drone/test_linux_std_ReleaseSmall | |
| 50 | ||
| 51 | - name: misc | |
| 52 | depends_on: | |
| 53 | - build | |
| 54 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 55 | commands: | |
| 56 | - ./ci/drone/test_linux_misc | |
| 57 | ||
| 58 | - name: cases | |
| 59 | depends_on: | |
| 60 | - build | |
| 61 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 62 | commands: | |
| 63 | - ./ci/drone/test_linux_cases | |
| 64 | ||
| 65 | - name: standalone | |
| 66 | depends_on: | |
| 67 | - build | |
| 68 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 69 | commands: | |
| 70 | - ./ci/drone/test_linux_standalone | |
| 71 | ||
| 72 | - name: docs | |
| 73 | depends_on: | |
| 74 | - build | |
| 75 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 76 | commands: | |
| 77 | - ./ci/drone/test_linux_docs | |
| 78 | ||
| 79 | - name: finalize | |
| 80 | depends_on: | |
| 81 | - build | |
| 82 | - behavior | |
| 83 | - std_Debug | |
| 84 | - std_ReleaseSafe | |
| 85 | - std_ReleaseFast | |
| 86 | - std_ReleaseSmall | |
| 87 | - misc | |
| 88 | - cases | |
| 89 | image: ziglang/static-base:llvm15-aarch64-3 | |
| 90 | environment: | |
| 91 | SRHT_OAUTH_TOKEN: | |
| 92 | from_secret: SRHT_OAUTH_TOKEN | |
| 93 | AWS_ACCESS_KEY_ID: | |
| 94 | from_secret: AWS_ACCESS_KEY_ID | |
| 95 | AWS_SECRET_ACCESS_KEY: | |
| 96 | from_secret: AWS_SECRET_ACCESS_KEY | |
| 97 | commands: | |
| 98 | - ./ci/drone/linux_script_finalize |
ci/drone/linux_script_build deleted-58| ... | ... | @@ -1,58 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | ARCH="$(uname -m)" | |
| 7 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 8 | ||
| 9 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 10 | ||
| 11 | PREFIX="/deps/local" | |
| 12 | ZIG="$PREFIX/bin/zig" | |
| 13 | TARGET="$ARCH-linux-musl" | |
| 14 | MCPU="baseline" | |
| 15 | ||
| 16 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | |
| 17 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | |
| 18 | ||
| 19 | # The `CMAKE_AR` parameter will consider any spaces to | |
| 20 | # be part of the executable path rather than CLI args, so we have | |
| 21 | # to create wrapper scripts for `zig ar` and zig ranlib`. | |
| 22 | cat <<'ENDFILE' >$PREFIX/bin/ar | |
| 23 | #!/bin/sh | |
| 24 | /deps/local/bin/zig ar $@ | |
| 25 | ENDFILE | |
| 26 | ||
| 27 | cat <<'ENDFILE' >$PREFIX/bin/ranlib | |
| 28 | #!/bin/sh | |
| 29 | /deps/local/bin/zig ranlib $@ | |
| 30 | ENDFILE | |
| 31 | ||
| 32 | chmod +x "$PREFIX/bin/ar" | |
| 33 | chmod +x "$PREFIX/bin/ranlib" | |
| 34 | ||
| 35 | # Make the `zig version` number consistent. | |
| 36 | # This will affect the cmake command below. | |
| 37 | git config core.abbrev 9 | |
| 38 | git fetch --unshallow || true | |
| 39 | git fetch --tags | |
| 40 | ||
| 41 | mkdir build | |
| 42 | cd build | |
| 43 | cmake .. \ | |
| 44 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | |
| 45 | -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" \ | |
| 46 | -DCMAKE_BUILD_TYPE=Release \ | |
| 47 | -DCMAKE_AR="$PREFIX/bin/ar" \ | |
| 48 | -DCMAKE_RANLIB="$PREFIX/bin/ranlib" \ | |
| 49 | -DZIG_TARGET_TRIPLE="$TARGET" \ | |
| 50 | -DZIG_TARGET_MCPU="$MCPU" \ | |
| 51 | -DZIG_STATIC=ON \ | |
| 52 | -GNinja | |
| 53 | ||
| 54 | # Now CMake will use Zig as the C/C++ compiler. We reset the environment variables | |
| 55 | # so that installation and testing do not get affected by them. | |
| 56 | unset CC | |
| 57 | unset CXX | |
| 58 | samu install |
ci/drone/linux_script_finalize deleted-54| ... | ... | @@ -1,54 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | ARCH="$(uname -m)" | |
| 7 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 8 | ||
| 9 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 10 | ||
| 11 | if [ -n "$DRONE_PULL_REQUEST" ]; then | |
| 12 | exit 0 | |
| 13 | fi | |
| 14 | ||
| 15 | cd build | |
| 16 | ||
| 17 | # Remove the unnecessary bin dir in $INSTALL_PREFIX/bin/zig | |
| 18 | mv "$INSTALL_PREFIX/bin/zig" "$INSTALL_PREFIX/" | |
| 19 | rmdir "$INSTALL_PREFIX/bin" | |
| 20 | ||
| 21 | # Remove the unnecessary zig dir in $INSTALL_PREFIX/lib/zig/std/std.zig | |
| 22 | mv "$INSTALL_PREFIX/lib/zig" "$INSTALL_PREFIX/lib2" | |
| 23 | rmdir "$INSTALL_PREFIX/lib" | |
| 24 | mv "$INSTALL_PREFIX/lib2" "$INSTALL_PREFIX/lib" | |
| 25 | ||
| 26 | mv ../LICENSE "$INSTALL_PREFIX/" | |
| 27 | mv ../zig-cache/langref.html "$INSTALL_PREFIX/doc/" | |
| 28 | ||
| 29 | GITBRANCH="$DRONE_BRANCH" | |
| 30 | VERSION="$("$INSTALL_PREFIX/zig" version)" | |
| 31 | DIRNAME="zig-linux-$ARCH-$VERSION" | |
| 32 | TARBALL="$DIRNAME.tar.xz" | |
| 33 | mv "$INSTALL_PREFIX" "$DIRNAME" | |
| 34 | tar cfJ "$TARBALL" "$DIRNAME" | |
| 35 | ||
| 36 | s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/ | |
| 37 | ||
| 38 | SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1) | |
| 39 | BYTESIZE=$(wc -c < $TARBALL) | |
| 40 | ||
| 41 | JSONFILE="tarball.json" | |
| 42 | touch $JSONFILE | |
| 43 | echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE | |
| 44 | echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE | |
| 45 | echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE | |
| 46 | ||
| 47 | s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$ARCH-linux-$VERSION.json" | |
| 48 | if [ "$GITBRANCH" = "master" ]; then | |
| 49 | # avoid leaking oauth token | |
| 50 | set +x | |
| 51 | ||
| 52 | cd "$DRONE_WORKSPACE" | |
| 53 | ./ci/srht/on_master_success "$VERSION" "$SRHT_OAUTH_TOKEN" | |
| 54 | fi |
ci/drone/test_linux_behavior deleted-10| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-behavior -Dskip-non-native --zig-lib-dir lib |
ci/drone/test_linux_cases deleted-12| ... | ... | @@ -1,12 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | # test building self-hosted without LLVM | |
| 11 | $ZIG build -Dskip-non-native --zig-lib-dir lib | |
| 12 | $ZIG build test-cases -Dskip-non-native --zig-lib-dir lib |
ci/drone/test_linux_docs deleted-10| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build docs --zig-lib-dir lib |
ci/drone/test_linux_misc deleted-17| ... | ... | @@ -1,17 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-compiler-rt -Dskip-non-native --zig-lib-dir lib | |
| 11 | $ZIG build test-compare-output -Dskip-non-native --zig-lib-dir lib | |
| 12 | $ZIG build test-universal-libc -Dskip-non-native --zig-lib-dir lib | |
| 13 | $ZIG build test-stack-traces -Dskip-non-native --zig-lib-dir lib | |
| 14 | $ZIG build test-cli -Dskip-non-native --zig-lib-dir lib | |
| 15 | $ZIG build test-asm-link -Dskip-non-native --zig-lib-dir lib | |
| 16 | $ZIG build test-translate-c -Dskip-non-native --zig-lib-dir lib | |
| 17 | $ZIG build test-fmt --zig-lib-dir lib |
ci/drone/test_linux_standalone deleted-10| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-standalone -Dskip-non-native --zig-lib-dir lib -Dskip-release-safe |
ci/drone/test_linux_std_Debug deleted-23| ... | ... | @@ -1,23 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-release-safe \ | |
| 13 | -Dskip-release-fast \ | |
| 14 | -Dskip-release-small \ | |
| 15 | -Dskip-non-native \ | |
| 16 | -Dskip-single-threaded | |
| 17 | ||
| 18 | # Produce the experimental std lib documentation. | |
| 19 | mkdir -p "$INSTALL_PREFIX/doc/std" | |
| 20 | $ZIG test "$DRONE_WORKSPACE/lib/std/std.zig" \ | |
| 21 | --zig-lib-dir "$DRONE_WORKSPACE/lib" \ | |
| 22 | -femit-docs="$INSTALL_PREFIX/doc/std" \ | |
| 23 | -fno-emit-bin |
ci/drone/test_linux_std_ReleaseFast deleted-17| ... | ... | @@ -1,17 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-debug \ | |
| 13 | -Dskip-release-safe \ | |
| 14 | -Dskip-release-small \ | |
| 15 | -Dskip-non-native \ | |
| 16 | -Dskip-single-threaded \ | |
| 17 | -Dskip-libc |
ci/drone/test_linux_std_ReleaseSafe deleted-17| ... | ... | @@ -1,17 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-debug \ | |
| 13 | -Dskip-release-fast \ | |
| 14 | -Dskip-release-small \ | |
| 15 | -Dskip-non-native \ | |
| 16 | -Dskip-single-threaded \ | |
| 17 | -Dskip-libc |
ci/drone/test_linux_std_ReleaseSmall deleted-17| ... | ... | @@ -1,17 +0,0 @@ |
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | set -x | |
| 4 | set -e | |
| 5 | ||
| 6 | INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release" | |
| 7 | ZIG="$INSTALL_PREFIX/bin/zig" | |
| 8 | export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache" | |
| 9 | ||
| 10 | $ZIG build test-std \ | |
| 11 | --zig-lib-dir lib \ | |
| 12 | -Dskip-debug \ | |
| 13 | -Dskip-release-safe \ | |
| 14 | -Dskip-release-fast \ | |
| 15 | -Dskip-non-native \ | |
| 16 | -Dskip-single-threaded \ | |
| 17 | -Dskip-libc |
ci/srht/index.json-5| ... | ... | @@ -33,11 +33,6 @@ |
| 33 | 33 | "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}", |
| 34 | 34 | "shasum": "{{X86_64_LINUX_SHASUM}}", |
| 35 | 35 | "size": "{{X86_64_LINUX_BYTESIZE}}" |
| 36 | }, | |
| 37 | "aarch64-linux": { | |
| 38 | "tarball": "https://ziglang.org/builds/{{AARCH64_LINUX_TARBALL}}", | |
| 39 | "shasum": "{{AARCH64_LINUX_SHASUM}}", | |
| 40 | "size": "{{AARCH64_LINUX_BYTESIZE}}" | |
| 41 | 36 | } |
| 42 | 37 | }, |
| 43 | 38 | "0.10.0": { |
ci/srht/update_download_page+6-6| ... | ... | @@ -9,7 +9,7 @@ NATIVE_TARBALL="zig-linux-$(uname -m)-$VERSION.tar.xz" |
| 9 | 9 | |
| 10 | 10 | # Check for all the builds being completed. It's expected that this script is run several times |
| 11 | 11 | # before they are all complete. |
| 12 | AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json" | |
| 12 | #AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json" | |
| 13 | 13 | X86_64_LINUX_JSON_URL="https://ziglang.org/builds/x86_64-linux-$VERSION.json" |
| 14 | 14 | X86_64_WINDOWS_JSON_URL="https://ziglang.org/builds/x86_64-windows-$VERSION.json" |
| 15 | 15 | AARCH64_MACOS_JSON_URL="https://ziglang.org/builds/aarch64-macos-$VERSION.json" |
| ... | ... | @@ -19,7 +19,7 @@ X86_64_FREEBSD_JSON_URL="https://ziglang.org/builds/x86_64-freebsd-$VERSION.json |
| 19 | 19 | |
| 20 | 20 | # If any of these fail, it's not really this job failing; rather we have detected |
| 21 | 21 | # that this job will be called again later when other jobs have completed. |
| 22 | curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0 | |
| 22 | #curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0 | |
| 23 | 23 | curl --fail -I "$X86_64_LINUX_JSON_URL" >/dev/null || exit 0 |
| 24 | 24 | curl --fail -I "$X86_64_WINDOWS_JSON_URL" >/dev/null || exit 0 |
| 25 | 25 | curl --fail -I "$AARCH64_MACOS_JSON_URL" >/dev/null || exit 0 |
| ... | ... | @@ -76,10 +76,10 @@ export X86_64_LINUX_TARBALL="$(echo "$X86_64_LINUX_JSON" | jq .tarball -r)" |
| 76 | 76 | export X86_64_LINUX_BYTESIZE="$(echo "$X86_64_LINUX_JSON" | jq .size -r)" |
| 77 | 77 | export X86_64_LINUX_SHASUM="$(echo "$X86_64_LINUX_JSON" | jq .shasum -r)" |
| 78 | 78 | |
| 79 | AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1) | |
| 80 | export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)" | |
| 81 | export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)" | |
| 82 | export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)" | |
| 79 | #AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1) | |
| 80 | #export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)" | |
| 81 | #export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)" | |
| 82 | #export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)" | |
| 83 | 83 | |
| 84 | 84 | X86_64_FREEBSD_JSON=$(curl --fail "$X86_64_FREEBSD_JSON_URL" || exit 1) |
| 85 | 85 | export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)" |