-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into v2
- Loading branch information
Showing
23 changed files
with
591 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,11 @@ jobs: | |
- name: Setup Go with cache | ||
uses: jfrog/.github/actions/install-go-with-cache@main | ||
|
||
- name: Setup Maven v3.8.8 for macOS | ||
# Fixed Maven version to avoid updating to 3.9, which includes breaking changes. | ||
- name: Setup Maven v3.8.8 | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.8.8 | ||
if: runner.os == 'macOS' | ||
|
||
- name: Install local Artifactory | ||
uses: jfrog/.github/actions/install-local-artifactory@main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Sign Darwin Binaries for Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: "Release version" | ||
required: true | ||
binaryFileName: | ||
description: 'Binary file name' | ||
required: true | ||
env: | ||
binaryFileName: ${{ github.event.inputs.binaryFileName }} | ||
releaseVersion: ${{ github.event.inputs.releaseVersion }} | ||
jobs: | ||
# Builds, signs, notarize and uploads the macOS binaries | ||
prepareBinary: | ||
name: Prepare-Binary | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
goarch: [ arm64, amd64 ] | ||
steps: | ||
# Setup | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23.x | ||
cache: false | ||
|
||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: v2 | ||
|
||
# Builds the executable and moves it inside the app template | ||
- name: Build and Move Executable | ||
run: | | ||
./build/build.sh ${{ env.binaryFileName }} | ||
mv ${{ env.binaryFileName }} ./build/apple_release/${{ env.binaryFileName }}.app/Contents/MacOS | ||
- name: Sign & Notarize | ||
env: | ||
APPLE_CERT_DATA: ${{ secrets.APPLE_CERT_DATA }} | ||
APPLE_CERT_PASSWORD: ${{ secrets.APPLE_CERT_PASSWORD }} | ||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | ||
APPLE_ACCOUNT_ID: ${{ secrets.APPLE_ACCOUNT_ID }} | ||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | ||
APP_TEMPLATE_PATH: ./build/apple_release/${{ env.binaryFileName }}.app | ||
run: ./build/apple_release/scripts/darwin-sign-and-notarize.sh | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.binaryFileName }}-darwin-v${{ env.releaseVersion }}-${{ matrix.goarch }} | ||
path: ./${{ env.binaryFileName }} | ||
retention-days: 1 | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.