summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-03-03 01:17:14 -0500
committerClementTsang <34804052+ClementTsang@users.noreply.github.com>2024-07-26 00:02:27 -0400
commitdad72a2562a0e4afbfdd52d48a58e3afdd8339d9 (patch)
tree346c2dc12ead25be25d2fe6dfb3964495fe10755
parent0b72a586988927f07a1365bc668a5cef26587d04 (diff)
ci: migrate macOS ARM builds to use GHA (#1419)0.9.7
* ci: migrate macOS ARM builds to use GHA M1 macOS runners are now available on GHA, so we can use it instead of CirrusCI for builds/CI. * bump freebsd
-rw-r--r--.cirrus.yml22
-rw-r--r--.github/workflows/build_releases.yml7
-rw-r--r--.github/workflows/ci.yml1
-rw-r--r--scripts/cirrus/build.py3
4 files changed, 12 insertions, 21 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 696a82e5..146a1049 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,7 +1,7 @@
%YAML 1.1
---
-# Configuration for CirrusCI. This is primarily used for testing and building FreeBSD and macOS M1, since other
-# CI platforms don't seem to support these platforms as of writing (GH may support M1 soon though).
+# Configuration for CirrusCI. This is primarily used for testing and building FreeBSD and old versions of Linux,
+# since other CI platforms don't support build jobs for these configurations.
#
# Note that we set the YAML directive above to prevent some linting errors around the templates.
@@ -50,10 +50,7 @@ test_task:
image_family: freebsd-14-0
- name: "FreeBSD 13 Test"
freebsd_instance:
- image_family: freebsd-13-2
- - name: "macOS M1 Test"
- macos_instance:
- image: ghcr.io/cirruslabs/macos-monterey-base:latest
+ image_family: freebsd-13-3
<<: *SETUP_TEMPLATE
<<: *CACHE_TEMPLATE
test_no_feature_script:
@@ -88,19 +85,12 @@ build_task:
TARGET: "x86_64-unknown-freebsd"
NAME: "x86_64-unknown-freebsd-14-0"
- name: "FreeBSD 13 Build"
- alias: "freebsd_13_2_build"
+ alias: "freebsd_13_3_build"
freebsd_instance:
- image_family: freebsd-13-2
+ image_family: freebsd-13-3
env:
TARGET: "x86_64-unknown-freebsd"
- NAME: "x86_64-unknown-freebsd-13-2"
- - name: "macOS M1 Build"
- alias: "macos_build"
- macos_instance:
- image: ghcr.io/cirruslabs/macos-monterey-base:latest
- env:
- TARGET: "aarch64-apple-darwin"
- NAME: "aarch64-apple-darwin"
+ NAME: "x86_64-unknown-freebsd-13-3"
- name: "Legacy Linux (2.17)"
alias: "linux_2_17_build"
container:
diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml
index a69abc45..4876382c 100644
--- a/.github/workflows/build_releases.yml
+++ b/.github/workflows/build_releases.yml
@@ -39,7 +39,7 @@ jobs:
matrix:
info:
# ======= Supported targets =======
- # Linux (x64, x86, aarch64)
+ # Linux (x86-64, x86, aarch64)
- {
os: "ubuntu-20.04",
target: "x86_64-unknown-linux-gnu",
@@ -72,10 +72,11 @@ jobs:
cross: true,
}
- # macOS (x64), M1 is built via CirrusCI.
+ # macOS (x86-64 and aarch64)
- { os: "macos-12", target: "x86_64-apple-darwin", cross: false }
+ - { os: "macos-14", target: "aarch64-apple-darwin", cross: false }
- # Windows (x64, x86)
+ # Windows (x86-64, x86)
- {
os: "windows-2019",
target: "x86_64-pc-windows-msvc",
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ee84c5db..230d4d8d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -78,6 +78,7 @@ jobs:
cross: true,
}
- { os: "macos-12", target: "x86_64-apple-darwin", cross: false }
+ - { os: "macos-14", target: "aarch64-apple-darwin", cross: false }
- {
os: "windows-2019",
target: "x86_64-pc-windows-msvc",
diff --git a/scripts/cirrus/build.py b/scripts/cirrus/build.py
index 421c777c..0a38ed47 100644
--- a/scripts/cirrus/build.py
+++ b/scripts/cirrus/build.py
@@ -20,9 +20,8 @@ from urllib.request import Request, urlopen, urlretrieve
# Form of each task is (TASK_ALIAS, FILE_NAME).
TASKS: List[Tuple[str, str]] = [
- ("freebsd_13_2_build", "bottom_x86_64-unknown-freebsd-13-2.tar.gz"),
+ ("freebsd_13_3_build", "bottom_x86_64-unknown-freebsd-13-3.tar.gz"),
("freebsd_14_0_build", "bottom_x86_64-unknown-freebsd-14-0.tar.gz"),
- ("macos_build", "bottom_aarch64-apple-darwin.tar.gz"),
("linux_2_17_build", "bottom_x86_64-unknown-linux-gnu-2-17.tar.gz"),
]
URL = "https://api.cirrus-ci.com/graphql"