Skip to content

Commit

Permalink
CI: Build on mac for both intel and arm
Browse files Browse the repository at this point in the history
  • Loading branch information
panglesd committed Sep 12, 2024
1 parent aee04df commit 71df46a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ jobs:
strategy:
fail-fast: false
matrix:
os:
- macos-13
config:
- { os: "macos-13", arch: "x86_64" }
- { os: "macos-14", arch: "xarm64" }
ocaml-compiler:
- 4.14.x
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -101,7 +102,6 @@ jobs:
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os != 'macos-latest' }}

- name: Install dependencies
run: opam install --deps-only --with-test --with-doc -y .
Expand All @@ -112,15 +112,15 @@ jobs:
mkdir -p new_release;
export OUTPUT=$PWD/new_release;
export TARGETOS=macos;
export TARGETARCH=x86_64;
export TARGETARCH={{ matrix.config.arch }};
export VERSION=$GITHUB_REF_NAME;
opam exec -- bash release/release.sh
- name: upload archives
# if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: archives-${{ matrix.os }}
name: archives-${{ matrix.config.os }}-${{ matrix.config.arch }}
path: new_release/*

release:
Expand Down

0 comments on commit 71df46a

Please sign in to comment.