Skip to content

Commit

Permalink
Merge pull request #5390 from unisonweb/topic/mac-arm-build
Browse files Browse the repository at this point in the history
  • Loading branch information
aryairani authored Oct 8, 2024
2 parents aba7145 + 71f4367 commit 0018203
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/bundle-ucm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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}}
Expand All @@ -133,6 +142,7 @@ jobs:
os:
- ubuntu-20.04
- macos-12
- macos-14
- windows-2019
runs-on: ${{matrix.os}}
steps:
Expand All @@ -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}}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0018203

Please sign in to comment.