Skip to content

Commit

Permalink
gh-actions: Adding macOS binary to release
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Jun 16, 2023
1 parent 884e55a commit 4566116
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
- name: Build the Main App (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: lazbuild -B --bm=Release --ws=cocoa "src/TestResourceLoad.lpi"
run: |
lazbuild -B --bm=Release --ws=cocoa "src/TestResourceLoad.lpi"
mv bin/TestResourceLoad bin/TestResourceLoad-macOS
- name: Upload binary (Windows)
if: ${{ (matrix.operating-system == 'windows-latest') && (matrix.lazarus-versions == 'stable') }}
Expand All @@ -67,6 +69,13 @@ jobs:
name: TestResourceLoad
path: bin/TestResourceLoad-*

- name: Upload binary (macOS)
if: ${{ (matrix.operating-system == 'macos-latest') && (matrix.lazarus-versions == 'stable') }}
uses: actions/upload-artifact@v3
with:
name: TestResourceLoad
path: bin/TestResourceLoad-macOS

package-release:
if: contains(github.ref, '/tags/')

Expand Down Expand Up @@ -97,6 +106,7 @@ jobs:
zip -r TestResourceLoad-${{ steps.vars.outputs.tag }}-x86_64-win64.zip TestResourceLoad.exe
tar -zcvf TestResourceLoad-GTK2-${{ steps.vars.outputs.tag }}-x86_64-linux.tar.gz TestResourceLoad-gtk2
tar -zcvf TestResourceLoad-Qt5-${{ steps.vars.outputs.tag }}-x86_64-linux.tar.gz TestResourceLoad-qt5
zip -r TestResourceLoad-macOS-${{ steps.vars.outputs.tag }}-x86_64-macos.zip TestResourceLoad-macOS
- name: Create GitHub release
uses: softprops/[email protected]
with:
Expand Down

0 comments on commit 4566116

Please sign in to comment.