mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
📦 Chore(custom): migrate macos-13 to macos-15 for action
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-13, windows-latest, windows-11-arm, macos-latest]
|
os: [ubuntu-latest, macos-15-intel, windows-latest, windows-11-arm, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
|
|
||||||
# step2: sign
|
# step2: sign
|
||||||
- name: Install the Apple certificates
|
- name: Install the Apple certificates
|
||||||
if: matrix.os == 'macos-13' || matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
|
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
|
||||||
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
|
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
# step3: yarn
|
# step3: yarn
|
||||||
- name: Install dependencies (macOS)
|
- name: Install dependencies (macOS)
|
||||||
if: matrix.os == 'macos-13' || matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
yarn config set ignore-engines true
|
yarn config set ignore-engines true
|
||||||
yarn
|
yarn
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
||||||
|
|
||||||
- name: Modify electron-builder.json for Macos x64
|
- name: Modify electron-builder.json for Macos x64
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'macos-15-intel'
|
||||||
run: |
|
run: |
|
||||||
# Remove arm64 from the arch array, keep only x64
|
# Remove arm64 from the arch array, keep only x64
|
||||||
jq '.mac.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
jq '.mac.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
||||||
@@ -163,7 +163,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload macOS x64 packages
|
- name: Upload macOS x64 packages
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'macos-15-intel'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-x64-packages
|
name: macos-x64-packages
|
||||||
@@ -213,7 +213,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload macOS x64 yml
|
- name: Upload macOS x64 yml
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'macos-15-intel'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-x64-yml
|
name: macos-x64-yml
|
||||||
|
|||||||
12
.github/workflows/test-build.yml
vendored
12
.github/workflows/test-build.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-13, windows-latest, windows-11-arm, macos-latest]
|
os: [ubuntu-latest, macos-15-intel, windows-latest, windows-11-arm, macos-latest]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up git config
|
- name: Set up git config
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
|
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
|
||||||
|
|
||||||
- name: Install dependencies (macOS)
|
- name: Install dependencies (macOS)
|
||||||
if: matrix.os == 'macos-13' || matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
yarn config set ignore-engines true
|
yarn config set ignore-engines true
|
||||||
yarn install
|
yarn install
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
$config | ConvertTo-Json -Depth 10 | Set-Content electron-builder.json
|
||||||
|
|
||||||
- name: Modify electron-builder.json for Macos x64
|
- name: Modify electron-builder.json for Macos x64
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'macos-15-intel'
|
||||||
run: |
|
run: |
|
||||||
# Remove arm64 from the arch array, keep only x64
|
# Remove arm64 from the arch array, keep only x64
|
||||||
jq '.mac.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
jq '.mac.target[0].arch = ["x64"]' electron-builder.json > tmp.json && mv tmp.json electron-builder.json
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Build application (macOS)
|
- name: Build application (macOS)
|
||||||
if: matrix.os == 'macos-13' || matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-latest'
|
||||||
run: yarn build:mac
|
run: yarn build:mac
|
||||||
env:
|
env:
|
||||||
ELECTRON_SKIP_NOTARIZATION: true
|
ELECTRON_SKIP_NOTARIZATION: true
|
||||||
@@ -131,7 +131,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload macOS packages
|
- name: Upload macOS packages
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'macos-15-intel'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-x64-packages
|
name: macos-x64-packages
|
||||||
@@ -181,7 +181,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload macOS yml
|
- name: Upload macOS yml
|
||||||
if: matrix.os == 'macos-13'
|
if: matrix.os == 'macos-15-intel'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-x64-yml
|
name: macos-x64-yml
|
||||||
|
|||||||
Reference in New Issue
Block a user