Skip to content

Commit

Permalink
ci: specify macos version
Browse files Browse the repository at this point in the history
MacOS is specified by version number explicitly because tag
"macos-latest" refers to macos-11 or macos-12 randomly during
GitHub action's transition while macos 12 removed Python 2 which
is required by electron-builder.

Since latest electron-builder has supported python3, this hotfix
will not introduce python2 in host but downgrade it to macos 12

Ref: electron-userland/electron-builder#6606
  • Loading branch information
Keith-CY authored and alexsupa597 committed Feb 13, 2023
1 parent 9cf8a4c commit a4b017d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- master
- 'rc/**'
- 'hotfix/**'
- "rc/**"
- "hotfix/**"

jobs:
default:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache: "yarn"

- name: Restore
uses: actions/cache@v3
Expand All @@ -49,7 +49,7 @@ jobs:
if: matrix.os == 'windows-2019'
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"

- name: Install libudev
if: matrix.os == 'ubuntu-20.04'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache: "yarn"

- name: Restore
uses: actions/cache@v3
Expand All @@ -44,7 +44,7 @@ jobs:
if: matrix.os == 'windows-2019'
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"

- name: Install libudev
if: matrix.os == 'ubuntu-20.04'
Expand Down

0 comments on commit a4b017d

Please sign in to comment.