From 5583b5b7d5524e38fbb91b55e8ad4806c4b26131 Mon Sep 17 00:00:00 2001
From: Yuki Okushi <huyuumi.dev@gmail.com>
Date: Sat, 17 Oct 2020 10:56:11 +0900
Subject: [PATCH] Add `aarch64-apple-darwin` to nightly targets

---
 ci/build.sh | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/ci/build.sh b/ci/build.sh
index 051177e3..e46c89fd 100644
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -154,13 +154,16 @@ x86_64-unknown-illumos \
 x86_64-unknown-linux-gnux32 \
 "
 
-RUST_OSX_TARGETS="\
-aarch64-apple-darwin \
+RUST_APPLE_TARGETS="\
 aarch64-apple-ios \
 x86_64-apple-darwin \
 x86_64-apple-ios \
 "
 
+RUST_NIGHTLY_APPLE_TARGETS="\
+aarch64-apple-darwin \
+"
+
 # The targets are listed here alphabetically
 TARGETS=""
 case "${OS}" in
@@ -183,7 +186,12 @@ case "${OS}" in
 
         ;;
     macos*)
-        TARGETS="${RUST_OSX_TARGETS}"
+        TARGETS="${RUST_APPLE_TARGETS}"
+
+        if [ "${RUST}" = "nightly" ]; then
+            TARGETS="${TARGETS} ${RUST_NIGHTLY_APPLE_TARGETS}"
+        fi
+
         ;;
     *)
         ;;
-- 
GitLab