Skip to content

Commit 298306c

Browse files
Add release build for intel macOS
1 parent ad0b8d6 commit 298306c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ jobs:
3636
run: make
3737

3838
build-macos:
39-
runs-on: macos-latest
39+
strategy:
40+
matrix:
41+
os: [macos-latest, macos-13]
42+
runs-on: ${{ matrix.os }}
43+
env:
44+
BUILD_NAME: porymap-${{ matrix.os }}-${{ github.ref_name }}
4045
steps:
4146
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
4247
- uses: actions/checkout@v4
@@ -61,19 +66,19 @@ jobs:
6166
- name: Prep Release Directory
6267
if: startsWith(github.ref, 'refs/tags/')
6368
run: |
64-
mkdir porymap-macOS-${{ github.ref_name }}
65-
cp porymap.dmg porymap-macOS-${{ github.ref_name }}/porymap.dmg
66-
cp RELEASE-README.txt porymap-macOS-${{ github.ref_name }}/README.txt
69+
mkdir $BUILD_NAME
70+
cp porymap.dmg $BUILD_NAME/porymap.dmg
71+
cp RELEASE-README.txt $BUILD_NAME/README.txt
6772
6873
- name: Bundle Release Directory
6974
if: startsWith(github.ref, 'refs/tags/')
70-
run: zip -r porymap-macOS-${{ github.ref_name }}.zip porymap-macOS-${{ github.ref_name }}
75+
run: zip -r $BUILD_NAME.zip $BUILD_NAME
7176

7277
- name: Release
7378
uses: softprops/action-gh-release@v2
7479
if: startsWith(github.ref, 'refs/tags/')
7580
with:
76-
files: porymap-macOS-${{ github.ref_name }}.zip
81+
files: $BUILD_NAME.zip
7782
env:
7883
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7984

0 commit comments

Comments
 (0)