📦 Chore(custom): update to macos-12 for action

This commit is contained in:
Kuingsmile
2024-05-21 09:22:50 +08:00
parent ace6f2e971
commit 5eb3c9db8a
6 changed files with 11 additions and 75 deletions
-21
View File
@@ -34,13 +34,6 @@ jobs:
- name: Check out git repository - name: Check out git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
# step2: sign
- name: Install the Apple certificates
if: matrix.os == 'macos-11'
run: |
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
# step3: install node env # step3: install node env
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
@@ -52,20 +45,6 @@ jobs:
run: | run: |
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
# step3: yarn
- name: Yarn install macos
if: matrix.os == 'macos-11'
run: |
yarn
yarn global add xvfb-maybe
npm rebuild --platform=darwin --arch=arm64 sharp
- name: Yarn install windows
if: matrix.os == 'windows-latest'
run: |
yarn
yarn global add xvfb-maybe
- name: Yarn install linux - name: Yarn install linux
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
run: | run: |
+3 -3
View File
@@ -21,7 +21,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-11] os: [macos-12]
steps: steps:
- name: Check out git repository - name: Check out git repository
@@ -29,7 +29,7 @@ jobs:
# step2: sign # step2: sign
- name: Install the Apple certificates - name: Install the Apple certificates
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
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
@@ -47,7 +47,7 @@ jobs:
# step3: yarn # step3: yarn
- name: Yarn install macos - name: Yarn install macos
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
run: | run: |
yarn yarn
yarn global add xvfb-maybe yarn global add xvfb-maybe
+3 -20
View File
@@ -26,7 +26,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-11] os: [macos-12]
# create steps # create steps
steps: steps:
@@ -36,7 +36,7 @@ jobs:
# step2: sign # step2: sign
- name: Install the Apple certificates - name: Install the Apple certificates
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
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
@@ -47,31 +47,14 @@ jobs:
with: with:
node-version: '16.x' node-version: '16.x'
- name: Install system deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
# step3: yarn # step3: yarn
- name: Yarn install macos - name: Yarn install macos
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
run: | run: |
yarn yarn
yarn global add xvfb-maybe yarn global add xvfb-maybe
npm rebuild --platform=darwin --arch=arm64 sharp npm rebuild --platform=darwin --arch=arm64 sharp
- name: Yarn install windows
if: matrix.os == 'windows-latest'
run: |
yarn
yarn global add xvfb-maybe
- name: Yarn install linux
if: matrix.os == 'ubuntu-latest'
run: |
yarn
yarn global add xvfb-maybe
- name: Build & release app - name: Build & release app
run: | run: |
yarn build yarn build
+3 -3
View File
@@ -24,7 +24,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, macos-11, windows-latest] os: [ubuntu-latest, macos-12, windows-latest]
steps: steps:
- name: Check out git repository - name: Check out git repository
@@ -32,7 +32,7 @@ jobs:
# step2: sign # step2: sign
- name: Install the Apple certificates - name: Install the Apple certificates
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
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
@@ -50,7 +50,7 @@ jobs:
# step3: yarn # step3: yarn
- name: Yarn install macos - name: Yarn install macos
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
run: | run: |
yarn yarn
yarn global add xvfb-maybe yarn global add xvfb-maybe
+2 -2
View File
@@ -26,7 +26,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-11] os: [macos-12]
# create steps # create steps
steps: steps:
@@ -36,7 +36,7 @@ jobs:
# step2: sign # step2: sign
- name: Install the Apple certificates - name: Install the Apple certificates
if: matrix.os == 'macos-11' if: matrix.os == 'macos-12'
run: | run: |
PP_PATH=$RUNNER_TEMP/build/piclistmas.provisionprofile PP_PATH=$RUNNER_TEMP/build/piclistmas.provisionprofile
echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
-26
View File
@@ -34,43 +34,17 @@ jobs:
- name: Check out git repository - name: Check out git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
# step2: sign
- name: Install the Apple certificates
if: matrix.os == 'macos-11'
run: |
CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
# step3: install node env # step3: install node env
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '16.x' node-version: '16.x'
- name: Install system deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
# step3: yarn
- name: Yarn install macos
if: matrix.os == 'macos-11'
run: |
yarn
yarn global add xvfb-maybe
npm rebuild --platform=darwin --arch=arm64 sharp
- name: Yarn install windows - name: Yarn install windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
run: | run: |
yarn yarn
yarn global add xvfb-maybe yarn global add xvfb-maybe
- name: Yarn install linux
if: matrix.os == 'ubuntu-latest'
run: |
yarn
yarn global add xvfb-maybe
- name: Build & release app - name: Build & release app
run: | run: |