Skip to content

Commit

Permalink
Add darwin delivery for intel
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikKalkoken committed Aug 31, 2024
1 parent f7d95a3 commit 39ffefc
Showing 1 changed file with 46 additions and 6 deletions.
52 changes: 46 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ jobs:
if-no-files-found: error
overwrite: true

package_darwin:
package_darwin_arm:
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-latest
runs-on: macos-14
needs: test
steps:
- uses: actions/checkout@v4
Expand All @@ -148,19 +148,58 @@ jobs:
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
- name: ZIP app bundle
run: zip --symlinks -r ${{ env.NAME }}-${{ env.VERSION }}-darwin-x64.zip "${{ env.FULLNAME }}.app/"
run: zip --symlinks -r ${{ env.NAME }}-${{ env.VERSION }}-darwin-arm64.zip "${{ env.FULLNAME }}.app/"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }}-macos
path: ${{ env.NAME }}-${{ env.VERSION }}-darwin-x64.zip
path: ${{ env.NAME }}-${{ env.VERSION }}-darwin-arm64.zip
if-no-files-found: error
overwrite: true

package_darwin_intel:
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-13
needs: test
steps:
- uses: actions/checkout@v4

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOVERSION }}

- name: Install Fyne tool
run: go install fyne.io/fyne/v2/cmd/fyne@latest

- name: Package app bundles
run: fyne package -os darwin

- name: Set version
run: |
VERSION=${{ github.ref_name }}
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
- name: ZIP app bundle
run: zip --symlinks -r ${{ env.NAME }}-${{ env.VERSION }}-darwin-intel64.zip "${{ env.FULLNAME }}.app/"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.NAME }}-macos
path: ${{ env.NAME }}-${{ env.VERSION }}-darwin-intel64.zip
if-no-files-found: error
overwrite: true

release:
if: startsWith(github.ref, 'refs/tags/')
needs: [package_linux, package_darwin, package_windows]
needs: [package_linux, package_darwin_arm, package_darwin_intel, package_windows]
runs-on: ubuntu-latest
permissions: write-all
steps:
Expand All @@ -182,4 +221,5 @@ jobs:
files: |
${{ env.NAME }}-${{ env.VERSION }}-windows-x64.zip
${{ env.FULLNAME2 }}-${{ env.VERSION }}-x86_64.AppImage
${{ env.NAME }}-${{ env.VERSION }}-darwin-x64.zip
${{ env.NAME }}-${{ env.VERSION }}-darwin-arm64.zip
${{ env.NAME }}-${{ env.VERSION }}-darwin-intel64.zip

0 comments on commit 39ffefc

Please sign in to comment.