-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Change mac arm64 build use github runner (janhq#2910)" (janhq…
- Loading branch information
Showing
2 changed files
with
27 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ on: | |
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
runs-on: macos-silicon | ||
environment: production | ||
permissions: | ||
contents: write | ||
|
@@ -55,9 +55,15 @@ jobs: | |
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
- name: Unblock keychain | ||
run: | | ||
security unlock-keychain -p ${{ secrets.KEYCHAIN_PASSWORD }} ~/Library/Keychains/login.keychain-db | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: '3.11' | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
# - name: Install jq | ||
# uses: dcarbone/[email protected] | ||
|
||
- name: Update app version based on latest release tag with build number | ||
if: inputs.public_provider != 'github' | ||
|
@@ -95,17 +101,17 @@ jobs: | |
env: | ||
VERSION_TAG: ${{ inputs.new_version }} | ||
|
||
- name: Get Cer for code signing | ||
run: base64 -d <<< "$CODE_SIGN_P12_BASE64" > /tmp/codesign.p12 | ||
shell: bash | ||
env: | ||
CODE_SIGN_P12_BASE64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
# - name: Get Cer for code signing | ||
# run: base64 -d <<< "$CODE_SIGN_P12_BASE64" > /tmp/codesign.p12 | ||
# shell: bash | ||
# env: | ||
# CODE_SIGN_P12_BASE64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
|
||
- uses: apple-actions/import-codesign-certs@v2 | ||
continue-on-error: true | ||
with: | ||
p12-file-base64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
p12-password: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
# - uses: apple-actions/import-codesign-certs@v2 | ||
# continue-on-error: true | ||
# with: | ||
# p12-file-base64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
# p12-password: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
|
||
- name: Build and publish app to cloudflare r2 or github artifactory | ||
if: inputs.public_provider != 'github' | ||
|
@@ -119,9 +125,9 @@ jobs: | |
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CSC_LINK: "/tmp/codesign.p12" | ||
CSC_KEY_PASSWORD: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
CSC_IDENTITY_AUTO_DISCOVERY: "true" | ||
# CSC_LINK: "/tmp/codesign.p12" | ||
# CSC_KEY_PASSWORD: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
# CSC_IDENTITY_AUTO_DISCOVERY: "true" | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | ||
APP_PATH: "." | ||
|
@@ -137,9 +143,9 @@ jobs: | |
make build-and-publish | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CSC_LINK: "/tmp/codesign.p12" | ||
CSC_KEY_PASSWORD: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
CSC_IDENTITY_AUTO_DISCOVERY: "true" | ||
# CSC_LINK: "/tmp/codesign.p12" | ||
# CSC_KEY_PASSWORD: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
# CSC_IDENTITY_AUTO_DISCOVERY: "true" | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | ||
APP_PATH: "." | ||
|
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