mirror of
https://github.com/felixrieseberg/macintosh.js.git
synced 2024-12-31 22:31:50 +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
|
run: yarn lint
|
||||||
build:
|
build:
|
||||||
needs: lint
|
needs: lint
|
||||||
runs-on: ${{ matrix.platform.host }}
|
name: Build (${{ matrix.os }})
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
os: [ macOS-latest, ubuntu-latest, windows-latest ]
|
||||||
- host: windows-latest
|
|
||||||
target: win32
|
|
||||||
- host: macOS-latest
|
|
||||||
target: darwin
|
|
||||||
- host: ubuntu-latest
|
|
||||||
target: linux
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
@ -53,7 +48,7 @@ jobs:
|
|||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
- uses: actions/cache@v1
|
- 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'`)
|
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
@ -62,7 +57,7 @@ jobs:
|
|||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
- name: Set MacOS signing certs
|
- name: Set MacOS signing certs
|
||||||
if: matrix.os == 'macOS-latest'
|
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:
|
env:
|
||||||
CERTIFICATE_OSX_APPLICATION: ${{ secrets.MACOS_CERT_P12 }}
|
CERTIFICATE_OSX_APPLICATION: ${{ secrets.MACOS_CERT_P12 }}
|
||||||
CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
|
CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
|
||||||
|
Loading…
Reference in New Issue
Block a user