Commit a65ba6c85a

Andrew Kelley <andrew@ziglang.org>
2022-11-08 19:04:33
CI: stop using cloud.drone.io
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.
1 parent 36e618a
ci/drone/drone.yml
@@ -1,98 +0,0 @@
----
-kind: pipeline
-type: docker
-name: test-aarch64-linux-musl
-
-platform:
-  os: linux
-  arch: arm64
-
-steps:
-- name: build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/linux_script_build
-
-- name: behavior
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_behavior
-
-- name: std_Debug
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_std_Debug
-
-- name: std_ReleaseSafe
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_std_ReleaseSafe
-
-- name: std_ReleaseFast
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_std_ReleaseFast
-
-- name: std_ReleaseSmall
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_std_ReleaseSmall
-
-- name: misc
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_misc
-
-- name: cases
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_cases
-
-- name: standalone
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_standalone
-
-- name: docs
-  depends_on:
-  - build
-  image: ziglang/static-base:llvm15-aarch64-3
-  commands:
-  - ./ci/drone/test_linux_docs
-
-- name: finalize
-  depends_on:
-  - build
-  - behavior
-  - std_Debug
-  - std_ReleaseSafe
-  - std_ReleaseFast
-  - std_ReleaseSmall
-  - misc
-  - cases
-  image: ziglang/static-base:llvm15-aarch64-3
-  environment:
-    SRHT_OAUTH_TOKEN:
-      from_secret: SRHT_OAUTH_TOKEN
-    AWS_ACCESS_KEY_ID:
-      from_secret: AWS_ACCESS_KEY_ID
-    AWS_SECRET_ACCESS_KEY:
-      from_secret: AWS_SECRET_ACCESS_KEY
-  commands:
-  - ./ci/drone/linux_script_finalize
ci/drone/linux_script_build
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-ARCH="$(uname -m)"
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-PREFIX="/deps/local"
-ZIG="$PREFIX/bin/zig"
-TARGET="$ARCH-linux-musl"
-MCPU="baseline"
-
-export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
-export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU"
-
-# The `CMAKE_AR` parameter will consider any spaces to
-# be part of the executable path rather than CLI args, so we have
-# to create wrapper scripts for `zig ar` and zig ranlib`.
-cat <<'ENDFILE' >$PREFIX/bin/ar
-#!/bin/sh
-/deps/local/bin/zig ar $@
-ENDFILE
-
-cat <<'ENDFILE' >$PREFIX/bin/ranlib
-#!/bin/sh
-/deps/local/bin/zig ranlib $@
-ENDFILE
-
-chmod +x "$PREFIX/bin/ar"
-chmod +x "$PREFIX/bin/ranlib"
-
-# Make the `zig version` number consistent.
-# This will affect the cmake command below.
-git config core.abbrev 9
-git fetch --unshallow || true
-git fetch --tags
-
-mkdir build
-cd build
-cmake .. \
-  -DCMAKE_PREFIX_PATH="$PREFIX" \
-  -DCMAKE_INSTALL_PREFIX="$INSTALL_PREFIX" \
-  -DCMAKE_BUILD_TYPE=Release \
-  -DCMAKE_AR="$PREFIX/bin/ar" \
-  -DCMAKE_RANLIB="$PREFIX/bin/ranlib" \
-  -DZIG_TARGET_TRIPLE="$TARGET" \
-  -DZIG_TARGET_MCPU="$MCPU" \
-  -DZIG_STATIC=ON \
-  -GNinja
-
-# Now CMake will use Zig as the C/C++ compiler. We reset the environment variables
-# so that installation and testing do not get affected by them.
-unset CC
-unset CXX
-samu install
ci/drone/linux_script_finalize
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-ARCH="$(uname -m)"
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-if [ -n "$DRONE_PULL_REQUEST" ]; then
-  exit 0
-fi
-
-cd build
-
-# Remove the unnecessary bin dir in $INSTALL_PREFIX/bin/zig
-mv "$INSTALL_PREFIX/bin/zig" "$INSTALL_PREFIX/"
-rmdir "$INSTALL_PREFIX/bin"
-
-# Remove the unnecessary zig dir in $INSTALL_PREFIX/lib/zig/std/std.zig
-mv "$INSTALL_PREFIX/lib/zig" "$INSTALL_PREFIX/lib2"
-rmdir "$INSTALL_PREFIX/lib"
-mv "$INSTALL_PREFIX/lib2" "$INSTALL_PREFIX/lib"
-
-mv ../LICENSE "$INSTALL_PREFIX/"
-mv ../zig-cache/langref.html "$INSTALL_PREFIX/doc/"
-
-GITBRANCH="$DRONE_BRANCH"
-VERSION="$("$INSTALL_PREFIX/zig" version)"
-DIRNAME="zig-linux-$ARCH-$VERSION"
-TARBALL="$DIRNAME.tar.xz"
-mv "$INSTALL_PREFIX" "$DIRNAME"
-tar cfJ "$TARBALL" "$DIRNAME"
-
-s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
-
-SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1)
-BYTESIZE=$(wc -c < $TARBALL)
-
-JSONFILE="tarball.json"
-touch $JSONFILE
-echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE
-echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE
-echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE
-
-s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$ARCH-linux-$VERSION.json"
-if [ "$GITBRANCH" = "master" ]; then
-  # avoid leaking oauth token
-  set +x
-
-  cd "$DRONE_WORKSPACE"
-  ./ci/srht/on_master_success "$VERSION" "$SRHT_OAUTH_TOKEN"
-fi
ci/drone/test_linux_behavior
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-behavior       -Dskip-non-native --zig-lib-dir lib
ci/drone/test_linux_cases
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-# test building self-hosted without LLVM
-$ZIG build            -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-cases -Dskip-non-native --zig-lib-dir lib
ci/drone/test_linux_docs
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build docs                                  --zig-lib-dir lib
ci/drone/test_linux_misc
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-compiler-rt    -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-compare-output -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-universal-libc -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-stack-traces   -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-cli            -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-asm-link       -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-translate-c    -Dskip-non-native --zig-lib-dir lib
-$ZIG build test-fmt                              --zig-lib-dir lib
ci/drone/test_linux_standalone
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-standalone     -Dskip-non-native --zig-lib-dir lib -Dskip-release-safe
ci/drone/test_linux_std_Debug
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-std \
-  --zig-lib-dir lib \
-  -Dskip-release-safe \
-  -Dskip-release-fast \
-  -Dskip-release-small \
-  -Dskip-non-native \
-  -Dskip-single-threaded
-
-# Produce the experimental std lib documentation.
-mkdir -p "$INSTALL_PREFIX/doc/std"
-$ZIG test "$DRONE_WORKSPACE/lib/std/std.zig" \
-  --zig-lib-dir "$DRONE_WORKSPACE/lib" \
-  -femit-docs="$INSTALL_PREFIX/doc/std" \
-  -fno-emit-bin
ci/drone/test_linux_std_ReleaseFast
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-std \
-  --zig-lib-dir lib \
-  -Dskip-debug \
-  -Dskip-release-safe \
-  -Dskip-release-small \
-  -Dskip-non-native \
-  -Dskip-single-threaded \
-  -Dskip-libc
ci/drone/test_linux_std_ReleaseSafe
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-std \
-  --zig-lib-dir lib \
-  -Dskip-debug \
-  -Dskip-release-fast \
-  -Dskip-release-small \
-  -Dskip-non-native \
-  -Dskip-single-threaded \
-  -Dskip-libc
ci/drone/test_linux_std_ReleaseSmall
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-set -x
-set -e
-
-INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
-ZIG="$INSTALL_PREFIX/bin/zig"
-export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
-
-$ZIG build test-std \
-  --zig-lib-dir lib \
-  -Dskip-debug \
-  -Dskip-release-safe \
-  -Dskip-release-fast \
-  -Dskip-non-native \
-  -Dskip-single-threaded \
-  -Dskip-libc
ci/srht/index.json
@@ -33,11 +33,6 @@
       "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}",
       "shasum": "{{X86_64_LINUX_SHASUM}}",
       "size": "{{X86_64_LINUX_BYTESIZE}}"
-    },
-    "aarch64-linux": {
-      "tarball": "https://ziglang.org/builds/{{AARCH64_LINUX_TARBALL}}",
-      "shasum": "{{AARCH64_LINUX_SHASUM}}",
-      "size": "{{AARCH64_LINUX_BYTESIZE}}"
     }
   },
   "0.10.0": {
ci/srht/update_download_page
@@ -9,7 +9,7 @@ NATIVE_TARBALL="zig-linux-$(uname -m)-$VERSION.tar.xz"
 
 # Check for all the builds being completed. It's expected that this script is run several times
 # before they are all complete.
-AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json"
+#AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json"
 X86_64_LINUX_JSON_URL="https://ziglang.org/builds/x86_64-linux-$VERSION.json"
 X86_64_WINDOWS_JSON_URL="https://ziglang.org/builds/x86_64-windows-$VERSION.json"
 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
 
 # If any of these fail, it's not really this job failing; rather we have detected
 # that this job will be called again later when other jobs have completed.
-curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0
+#curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0
 curl --fail -I "$X86_64_LINUX_JSON_URL" >/dev/null || exit 0
 curl --fail -I "$X86_64_WINDOWS_JSON_URL" >/dev/null || exit 0
 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)"
 export X86_64_LINUX_BYTESIZE="$(echo "$X86_64_LINUX_JSON" | jq .size -r)"
 export X86_64_LINUX_SHASUM="$(echo "$X86_64_LINUX_JSON" | jq .shasum -r)"
 
-AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1)
-export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)"
-export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)"
-export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)"
+#AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1)
+#export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)"
+#export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)"
+#export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)"
 
 X86_64_FREEBSD_JSON=$(curl --fail "$X86_64_FREEBSD_JSON_URL" || exit 1)
 export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)"