Skip to content

Commit

Permalink
Build universal binary before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RblSb committed Feb 10, 2024
1 parent 08b31b8 commit 47287c6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.opam/
key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}
key: ${{ matrix.os }}-${{ hashFiles('./haxe.opam', './libs/') }}

- name: Install Neko from S3
run: |
Expand Down Expand Up @@ -681,6 +681,10 @@ jobs:
with:
name: macBinaries
path: macBinaries
- uses: actions/download-artifact@v3
with:
name: macArmBinaries
path: macArmBinaries

- name: Install Neko from S3
run: |
Expand All @@ -699,6 +703,14 @@ jobs:
- name: Print Neko version
run: neko -version 2>&1

- name: Make universal binary
run: |
set -ex
tar -xf macBinaries/*_bin.tar.gz -C macBinaries --strip-components=1
tar -xf macArmBinaries/*_bin.tar.gz -C macArmBinaries --strip-components=1
# mkdir ./macUniversalBinaries
lipo -create -output macBinaries/haxe macBinaries/haxe macArmBinaries/haxe
- name: Setup Haxe
run: |
# mkdir ./macBinaries
Expand Down
8 changes: 8 additions & 0 deletions extra/github-actions/test-mac.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
- name: Make universal binary
run: |
set -ex
tar -xf macBinaries/*_bin.tar.gz -C macBinaries --strip-components=1
tar -xf macArmBinaries/*_bin.tar.gz -C macArmBinaries --strip-components=1
# mkdir ./macUniversalBinaries
lipo -create -output macBinaries/haxe macBinaries/haxe macArmBinaries/haxe
- name: Setup Haxe
run: |
# mkdir ./macBinaries
Expand Down
6 changes: 5 additions & 1 deletion extra/github-actions/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ jobs:
uses: actions/[email protected]
with:
path: ~/.opam/
key: ${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}
key: ${{ matrix.os }}-${{ hashFiles('./haxe.opam', './libs/') }}

@import install-neko-unix.yml
@import build-mac.yml
Expand Down Expand Up @@ -385,6 +385,10 @@ jobs:
with:
name: macBinaries
path: macBinaries
- uses: actions/download-artifact@v3
with:
name: macArmBinaries
path: macArmBinaries

@import install-neko-unix.yml
@import test-mac.yml
Expand Down

0 comments on commit 47287c6

Please sign in to comment.