-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5390 from unisonweb/topic/mac-arm-build
- Loading branch information
Showing
1 changed file
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, macos-12, windows-2019] | ||
os: [ubuntu-20.04, macos-12, macos-14, windows-2019] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -91,7 +91,16 @@ jobs: | |
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: set up environment | ||
run: echo "ucm=${{ runner.temp }}/unison" >> $GITHUB_ENV | ||
run: | | ||
echo "ucm=${{ runner.temp }}/unison" >> $GITHUB_ENV | ||
case "$RUNNER_ARCH" in | ||
X86) racket_arch=x86 ;; | ||
X64) racket_arch=x64 ;; | ||
ARM) racket_arch=arm32 ;; | ||
ARM64) racket_arch=arm64 ;; | ||
*) echo "Unsupported architecture: ${{runner.arch}}"; exit 1 ;; | ||
esac | ||
echo "racket_arch=$racket_arch" >> $GITHUB_ENV | ||
- name: download racket `unison` source | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -107,7 +116,7 @@ jobs: | |
${{ env.ucm }} transcript unison-src/transcripts-manual/gen-racket-libs.md | ||
- uses: Bogdanp/[email protected] | ||
with: | ||
architecture: "x64" | ||
architecture: ${{ env.racket_arch }} | ||
distribution: "full" | ||
variant: "CS" | ||
version: ${{env.racket_version}} | ||
|
@@ -133,6 +142,7 @@ jobs: | |
os: | ||
- ubuntu-20.04 | ||
- macos-12 | ||
- macos-14 | ||
- windows-2019 | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
|
@@ -155,9 +165,19 @@ jobs: | |
# This isn't right because unison.zip is going to include different dates each time. | ||
# Maybe we can unpack it and hash the contents. | ||
key: ${{ runner.os }}-racket-${{env.racket_version}}-${{hashFiles('scheme-libs/racket/unison.zip')}} | ||
- name: set up environment | ||
run: | | ||
case "$RUNNER_ARCH" in | ||
X86) racket_arch=x86 ;; | ||
X64) racket_arch=x64 ;; | ||
ARM) racket_arch=arm32 ;; | ||
ARM64) racket_arch=arm64 ;; | ||
*) echo "Unsupported architecture: ${{runner.arch}}"; exit 1 ;; | ||
esac | ||
echo "racket_arch=$racket_arch" >> $GITHUB_ENV | ||
- uses: Bogdanp/[email protected] | ||
with: | ||
architecture: "x64" | ||
architecture: ${{ env.racket_arch }} | ||
distribution: "full" | ||
variant: "CS" | ||
version: ${{env.racket_version}} | ||
|
@@ -191,12 +211,12 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, macos-12, windows-2019] | ||
os: [ubuntu-20.04, macos-12, macos-14, windows-2019] | ||
steps: | ||
- name: set up environment | ||
run: | | ||
staging_dir="${RUNNER_TEMP//\\//}/ucm-staging" | ||
artifact_os="$(echo $RUNNER_OS | tr '[:upper:]' '[:lower:]')" | ||
artifact_os="$(echo "${RUNNER_OS}-${RUNNER_ARCH}" | tr '[:upper:]' '[:lower:]')" | ||
echo "staging_dir=$staging_dir" >> $GITHUB_ENV | ||
echo "artifact_os=$artifact_os" >> $GITHUB_ENV | ||
- name: download ucm | ||
|