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 9, 2024
1 parent 08b31b8 commit 7f0ffdc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
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,15 @@ 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
lipo -create -output macBinaries/haxelib macBinaries/haxelib macArmBinaries/haxelib
- name: Setup Haxe
run: |
# mkdir ./macBinaries
Expand Down
9 changes: 9 additions & 0 deletions extra/github-actions/test-mac.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
- 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
lipo -create -output macBinaries/haxelib macBinaries/haxelib macArmBinaries/haxelib
- name: Setup Haxe
run: |
# mkdir ./macBinaries
Expand Down
4 changes: 4 additions & 0 deletions extra/github-actions/workflows/main.yml
Original file line number Diff line number Diff line change
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 7f0ffdc

Please sign in to comment.