From cb76f821942053091706b7bb2c4dc416bb09bfb9 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Mon, 6 Jul 2020 15:12:27 +0200 Subject: [PATCH 1/2] ci: avoid symlinking the build directory on self-hosted builders --- src/ci/scripts/symlink-build-dir.sh | 2 +- src/ci/shared.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ci/scripts/symlink-build-dir.sh b/src/ci/scripts/symlink-build-dir.sh index 50178b9c33e..28d8aa3b6e7 100755 --- a/src/ci/scripts/symlink-build-dir.sh +++ b/src/ci/scripts/symlink-build-dir.sh @@ -12,7 +12,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" if isWindows && isAzurePipelines; then cmd //c "mkdir c:\\MORE_SPACE" cmd //c "mklink /J build c:\\MORE_SPACE" -elif isLinux && isGitHubActions; then +elif isLinux && isGitHubActions && ! isSelfHostedGitHubActions; then sudo mkdir -p /mnt/more-space sudo chown -R "$(whoami):" /mnt/more-space diff --git a/src/ci/shared.sh b/src/ci/shared.sh index 206065d7072..8222758ed6d 100644 --- a/src/ci/shared.sh +++ b/src/ci/shared.sh @@ -38,6 +38,11 @@ function isGitHubActions { [[ "${GITHUB_ACTIONS-false}" = "true" ]] } + +function isSelfHostedGitHubActions { + [[ "${RUST_GHA_SELF_HOSTED-false}" = "true" ]] +} + function isMacOS { [[ "${OSTYPE}" = "darwin"* ]] } From fe5a40eb14f233554a30c038cf8944b2d2adf9ff Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Mon, 6 Jul 2020 15:15:57 +0200 Subject: [PATCH 2/2] ci: add aarch64-gnu as a fallible auto builder --- .github/workflows/ci.yml | 5 +++++ src/ci/github-actions/ci.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e0808c0d58..3f0f01ab5e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -576,6 +576,11 @@ jobs: strategy: matrix: include: + - name: aarch64-gnu + os: + - self-hosted + - ARM64 + - linux - name: dist-x86_64-apple env: SCRIPT: "./x.py dist" diff --git a/src/ci/github-actions/ci.yml b/src/ci/github-actions/ci.yml index 425e34f1af6..32bbc1fccc0 100644 --- a/src/ci/github-actions/ci.yml +++ b/src/ci/github-actions/ci.yml @@ -84,6 +84,9 @@ x--expand-yaml-anchors--remove: os: windows-latest-xl <<: *base-job + - &job-aarch64-linux + os: [self-hosted, ARM64, linux] + - &step if: success() && !env.SKIP_JOB @@ -585,6 +588,13 @@ jobs: strategy: matrix: include: + ############################# + # Linux/Docker builders # + ############################# + + - name: aarch64-gnu + <<: *job-aarch64-linux + #################### # macOS Builders # ####################