42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: "Main workflow"
|
|
on: [pull_request, push]
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-11]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '20.11.1'
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: "Install build deps on linux"
|
|
run: |
|
|
echo $RUNNER_OS;
|
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
|
sudo apt-get install libusb-1.0-0-dev
|
|
sudo apt-get install libudev-dev
|
|
fi
|
|
shell: bash
|
|
- name: "Install dependencies"
|
|
run: yarn install --network-timeout 1000000
|
|
- name: "Build application"
|
|
env:
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS }}
|
|
APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
|
|
APPLE_TEAM_ID: ${{ secrets.APPLE_ID_TEAM }}
|
|
APPLE_ID_TEAM: ${{ secrets.APPLE_ID_TEAM }}
|
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
|
|
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
|
|
run: yarn dist
|