authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-08 11:04:33-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 13:55:16-07:00
log4efb197f90f60efc253f242463538de573d54e72
tree95beca5a0d5a7ba4918a4c2d21096c4ad22170b6
parent1be11e230a453700bcf8cd0d75e0dd7c3a30c2f0

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.

14 files changed, 6 insertions(+), 354 deletions(-)

ci/drone/drone.yml deleted-98
...@@ -1,98 +0,0 @@
1---
2kind: pipeline
3type: docker
4name: test-aarch64-linux-musl
5
6platform:
7 os: linux
8 arch: arm64
9
10steps:
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
3set -x
4set -e
5
6ARCH="$(uname -m)"
7INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
8
9export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
10
11PREFIX="/deps/local"
12ZIG="$PREFIX/bin/zig"
13TARGET="$ARCH-linux-musl"
14MCPU="baseline"
15
16export CC="$ZIG cc -target $TARGET -mcpu=$MCPU"
17export 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`.
22cat <<'ENDFILE' >$PREFIX/bin/ar
23#!/bin/sh
24/deps/local/bin/zig ar $@
25ENDFILE
26
27cat <<'ENDFILE' >$PREFIX/bin/ranlib
28#!/bin/sh
29/deps/local/bin/zig ranlib $@
30ENDFILE
31
32chmod +x "$PREFIX/bin/ar"
33chmod +x "$PREFIX/bin/ranlib"
34
35# Make the `zig version` number consistent.
36# This will affect the cmake command below.
37git config core.abbrev 9
38git fetch --unshallow || true
39git fetch --tags
40
41mkdir build
42cd build
43cmake .. \
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.
56unset CC
57unset CXX
58samu install
ci/drone/linux_script_finalize deleted-54
...@@ -1,54 +0,0 @@
1#!/bin/sh
2
3set -x
4set -e
5
6ARCH="$(uname -m)"
7INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
8
9export ZIG_GLOBAL_CACHE_DIR="$DRONE_WORKSPACE/zig-cache"
10
11if [ -n "$DRONE_PULL_REQUEST" ]; then
12 exit 0
13fi
14
15cd build
16
17# Remove the unnecessary bin dir in $INSTALL_PREFIX/bin/zig
18mv "$INSTALL_PREFIX/bin/zig" "$INSTALL_PREFIX/"
19rmdir "$INSTALL_PREFIX/bin"
20
21# Remove the unnecessary zig dir in $INSTALL_PREFIX/lib/zig/std/std.zig
22mv "$INSTALL_PREFIX/lib/zig" "$INSTALL_PREFIX/lib2"
23rmdir "$INSTALL_PREFIX/lib"
24mv "$INSTALL_PREFIX/lib2" "$INSTALL_PREFIX/lib"
25
26mv ../LICENSE "$INSTALL_PREFIX/"
27mv ../zig-cache/langref.html "$INSTALL_PREFIX/doc/"
28
29GITBRANCH="$DRONE_BRANCH"
30VERSION="$("$INSTALL_PREFIX/zig" version)"
31DIRNAME="zig-linux-$ARCH-$VERSION"
32TARBALL="$DIRNAME.tar.xz"
33mv "$INSTALL_PREFIX" "$DIRNAME"
34tar cfJ "$TARBALL" "$DIRNAME"
35
36s3cmd put -P --add-header="cache-control: public, max-age=31536000, immutable" "$TARBALL" s3://ziglang.org/builds/
37
38SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1)
39BYTESIZE=$(wc -c < $TARBALL)
40
41JSONFILE="tarball.json"
42touch $JSONFILE
43echo "{\"tarball\": \"$TARBALL\"," >>$JSONFILE
44echo "\"shasum\": \"$SHASUM\"," >>$JSONFILE
45echo "\"size\": \"$BYTESIZE\"}" >>$JSONFILE
46
47s3cmd put -P "$JSONFILE" "s3://ziglang.org/builds/$ARCH-linux-$VERSION.json"
48if [ "$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"
54fi
ci/drone/test_linux_behavior deleted-10
...@@ -1,10 +0,0 @@
1#!/bin/sh
2
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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.
19mkdir -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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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
3set -x
4set -e
5
6INSTALL_PREFIX="$DRONE_WORKSPACE/stage3-release"
7ZIG="$INSTALL_PREFIX/bin/zig"
8export 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,11 +33,6 @@
33 "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}",33 "tarball": "https://ziglang.org/builds/{{X86_64_LINUX_TARBALL}}",
34 "shasum": "{{X86_64_LINUX_SHASUM}}",34 "shasum": "{{X86_64_LINUX_SHASUM}}",
35 "size": "{{X86_64_LINUX_BYTESIZE}}"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 "0.10.0": {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,7 +9,7 @@ NATIVE_TARBALL="zig-linux-$(uname -m)-$VERSION.tar.xz"
99
10# Check for all the builds being completed. It's expected that this script is run several times10# Check for all the builds being completed. It's expected that this script is run several times
11# before they are all complete.11# before they are all complete.
12AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json"12#AARCH64_LINUX_JSON_URL="https://ziglang.org/builds/aarch64-linux-$VERSION.json"
13X86_64_LINUX_JSON_URL="https://ziglang.org/builds/x86_64-linux-$VERSION.json"13X86_64_LINUX_JSON_URL="https://ziglang.org/builds/x86_64-linux-$VERSION.json"
14X86_64_WINDOWS_JSON_URL="https://ziglang.org/builds/x86_64-windows-$VERSION.json"14X86_64_WINDOWS_JSON_URL="https://ziglang.org/builds/x86_64-windows-$VERSION.json"
15AARCH64_MACOS_JSON_URL="https://ziglang.org/builds/aarch64-macos-$VERSION.json"15AARCH64_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,7 +19,7 @@ X86_64_FREEBSD_JSON_URL="https://ziglang.org/builds/x86_64-freebsd-$VERSION.json
1919
20# If any of these fail, it's not really this job failing; rather we have detected20# If any of these fail, it's not really this job failing; rather we have detected
21# that this job will be called again later when other jobs have completed.21# that this job will be called again later when other jobs have completed.
22curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 022#curl --fail -I "$AARCH64_LINUX_JSON_URL" >/dev/null || exit 0
23curl --fail -I "$X86_64_LINUX_JSON_URL" >/dev/null || exit 023curl --fail -I "$X86_64_LINUX_JSON_URL" >/dev/null || exit 0
24curl --fail -I "$X86_64_WINDOWS_JSON_URL" >/dev/null || exit 024curl --fail -I "$X86_64_WINDOWS_JSON_URL" >/dev/null || exit 0
25curl --fail -I "$AARCH64_MACOS_JSON_URL" >/dev/null || exit 025curl --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,10 +76,10 @@ export X86_64_LINUX_TARBALL="$(echo "$X86_64_LINUX_JSON" | jq .tarball -r)"
76export X86_64_LINUX_BYTESIZE="$(echo "$X86_64_LINUX_JSON" | jq .size -r)"76export X86_64_LINUX_BYTESIZE="$(echo "$X86_64_LINUX_JSON" | jq .size -r)"
77export X86_64_LINUX_SHASUM="$(echo "$X86_64_LINUX_JSON" | jq .shasum -r)"77export X86_64_LINUX_SHASUM="$(echo "$X86_64_LINUX_JSON" | jq .shasum -r)"
7878
79AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1)79#AARCH64_LINUX_JSON=$(curl --fail "$AARCH64_LINUX_JSON_URL" || exit 1)
80export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)"80#export AARCH64_LINUX_TARBALL="$(echo "$AARCH64_LINUX_JSON" | jq .tarball -r)"
81export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)"81#export AARCH64_LINUX_BYTESIZE="$(echo "$AARCH64_LINUX_JSON" | jq .size -r)"
82export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)"82#export AARCH64_LINUX_SHASUM="$(echo "$AARCH64_LINUX_JSON" | jq .shasum -r)"
8383
84X86_64_FREEBSD_JSON=$(curl --fail "$X86_64_FREEBSD_JSON_URL" || exit 1)84X86_64_FREEBSD_JSON=$(curl --fail "$X86_64_FREEBSD_JSON_URL" || exit 1)
85export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)"85export X86_64_FREEBSD_TARBALL="$(echo "$X86_64_FREEBSD_JSON" | jq .tarball -r)"