Skip to content

Commit

Permalink
ci: github macosx arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
majiru committed Aug 16, 2023
1 parent 56be6fe commit bdd6ee3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,24 @@ jobs:
cd ${{ github.workspace }}
make
cp drawterm gui-cocoa/drawterm.app/
- name: Upload app
- name: Upload amd64 app
uses: actions/upload-artifact@v3
with:
name: drawterm.app
name: drawterm-amd64.app
path: ${{ github.workspace }}/gui-cocoa/drawterm.app
- name: Build arm64
env:
CONF: osx-cocoa
run: |
cd ${{ github.workspace }}
make clean
sed -EI '' 's/^CFLAGS=/CFLAGS=--target=arm64-apple-darwin /g' Make.osx-cocoa
sed -EI '' 's/^LDADD=/LDADD=--target=arm64-apple-darwin /g' Make.osx-cocoa
sed -EI '' 's/arch=.*;/arch=arm64;/g' Make.osx-cocoa
make
cp drawterm gui-cocoa/drawterm.app/
- name: Upload arm64 app
uses: actions/upload-artifact@v3
with:
name: drawterm-arm64.app
path: ${{ github.workspace }}/gui-cocoa/drawterm.app

0 comments on commit bdd6ee3

Please sign in to comment.