mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-12-29 09:33:03 +00:00
build: Fix more stuff
This commit is contained in:
parent
a05e37bdff
commit
2a6f7bbd09
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -33,16 +33,11 @@ jobs:
|
||||
run: yarn lint
|
||||
build:
|
||||
needs: lint
|
||||
runs-on: ${{ matrix.platform.host }}
|
||||
name: Build (${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
platform:
|
||||
- host: windows-latest
|
||||
target: win32
|
||||
- host: macOS-latest
|
||||
target: darwin
|
||||
- host: ubuntu-latest
|
||||
target: linux
|
||||
os: [ macOS-latest, ubuntu-latest, windows-latest ]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
@ -53,7 +48,7 @@ jobs:
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- uses: actions/cache@v1
|
||||
if: matrix.platform.host != 'macOS-latest'
|
||||
if: matrix.os != 'macOS-latest'
|
||||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
@ -62,7 +57,7 @@ jobs:
|
||||
${{ runner.os }}-yarn-
|
||||
- name: Set MacOS signing certs
|
||||
if: matrix.os == 'macOS-latest'
|
||||
run: chmod +x tools/add-osx-cert.sh && ./tools/add-osx-cert.sh
|
||||
run: chmod +x tools/add-macos-cert.sh && ./tools/add-macos-cert.sh
|
||||
env:
|
||||
CERTIFICATE_OSX_APPLICATION: ${{ secrets.MACOS_CERT_P12 }}
|
||||
CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
|
||||
|
Loading…
Reference in New Issue
Block a user