Skip to content

Commit ca4dde2

Browse files
authored
fix: mac intel build (#367)
older version of macos is required to build executable for intel based cpu.
2 parents c34a82d + 796f3b7 commit ca4dde2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/auto-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- target: windows
2525
os: windows-latest
2626
- target: macos
27-
os: macos-latest
27+
os: macos-13
2828
- target: macos-arm
2929
os: macos-latest
3030
runs-on: ${{ matrix.os }}

.github/workflows/auto-release-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
- name: Set env from github
7373
# keep alphabetical order
7474
run: |
75-
echo "AUTO_ADJUST_CONTRACT_PRICE_TIMEOUT"=$AUTO_ADJUST_CONTRACT_PRICE_TIMEOUT >> .env
76-
echo "AUTO_ADJUST_PRICE_INTERVAL"=$AUTO_ADJUST_PRICE_INTERVAL >> .env
75+
echo "AUTO_ADJUST_CONTRACT_PRICE_TIMEOUT=$AUTO_ADJUST_CONTRACT_PRICE_TIMEOUT" >> .env
76+
echo "AUTO_ADJUST_PRICE_INTERVAL=$AUTO_ADJUST_PRICE_INTERVAL" >> .env
7777
echo "CHAIN_ID=$CHAIN_ID" >> .env
7878
echo "COIN_DEFAULT_GAS_LIMIT=$COIN_DEFAULT_GAS_LIMIT" >> .env
7979
echo "DEFAULT_GAS_PRICE=$DEFAULT_GAS_PRICE" >> .env

.github/workflows/auto-release-stg.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
artifact_name: lumerin-wallet-desktop.exe
2727
asset_name: lumerin_v${{github.ref_name}}.exe
2828
- target: macos
29-
os: macos-latest
29+
os: macos-13
3030
artifact_name: lumerin-wallet-desktop-x64.dmg
3131
asset_name: lumerin_v${{github.ref_name}}.dmg
3232
- target: macos-arm
@@ -162,13 +162,13 @@ jobs:
162162
downloadUrl="https://gitlab.com/api/v4/projects/${{ secrets.GITLAB_PROXY_REPO_ID }}/jobs/$jobId/artifacts/$artifactPath"
163163
164164
if [ "${namePrefix}" = 'windows_amd64.exe' ]; then
165-
curl -o "$GITHUB_WORKSPACE/executables/proxy-router.exe" -H "Authorization: Bearer ${{ secrets.GITLAB_TOKEN }}" "$downloadUrl" -L
165+
curl -o "$GITHUB_WORKSPACE/executables/proxy-router.exe" -H "Authorization: Bearer ${{ secrets.GITLAB_PROXY_REPO_TOKEN }}" "$downloadUrl" -L
166166
else
167-
curl -o "$GITHUB_WORKSPACE/executables/proxy-router" -H "Authorization: Bearer ${{ secrets.GITLAB_TOKEN }}" "$downloadUrl" -L
167+
curl -o "$GITHUB_WORKSPACE/executables/proxy-router" -H "Authorization: Bearer ${{ secrets.GITLAB_PROXY_REPO_TOKEN }}" "$downloadUrl" -L
168168
fi
169169
break_outer=true
170170
break
171-
done < <(curl -H "Accept: application/json" -H "Authorization: Bearer ${{ secrets.GITLAB_TOKEN }}" -0 "https://gitlab.com/api/v4/projects/${{ secrets.GITLAB_PROXY_REPO_ID }}/jobs?scope[]=success&per_page=100&page=$i" | jq -c '.[] | select(.name == "release-internal") | select(.ref | test("-stg$")) | {name: .ref, releaseName: .name, jobId: .id}')
171+
done < <(curl -H "Accept: application/json" -H "Authorization: Bearer ${{ secrets.GITLAB_PROXY_REPO_TOKEN }}" -0 "https://gitlab.com/api/v4/projects/${{ secrets.GITLAB_PROXY_REPO_ID }}/jobs?scope[]=success&per_page=100&page=$i" | jq -c '.[] | select(.name == "release-internal") | select(.ref | test("-stg$")) | {name: .ref, releaseName: .name, jobId: .id}')
172172
if $break_outer; then
173173
break
174174
fi

0 commit comments

Comments
 (0)