mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-26 22:24:50 +02:00
4237c5d1a5
ci: simplify thanks to prebuilds as robotjs and @jitsi/electron-sdk have prebuilds, no need for build tools here
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
name: CI
|
|
|
|
on:
|
|
# Trigger the workflow on push or pull request,
|
|
# but only for the master branch
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-linux:
|
|
name: Linux
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- name: Build it
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
npm install
|
|
npm run dist
|
|
build-mac:
|
|
name: macOS
|
|
runs-on: macos-11
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- name: Prepare for app signing and notarization
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
run: |
|
|
echo "CSC_LINK=${{ secrets.mac_cert }}" >> $GITHUB_ENV
|
|
echo "CSC_KEY_PASSWORD=${{ secrets.mac_cert_password }}" >> $GITHUB_ENV
|
|
echo "APPLE_ID=${{ secrets.apple_id }}" >> $GITHUB_ENV
|
|
echo "APPLE_ID_PASSWORD=${{ secrets.apple_id_password }}" >> $GITHUB_ENV
|
|
echo "TEAM_ID=${{ secrets.team_id }}" >> $GITHUB_ENV
|
|
- name: Build it
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
npm install
|
|
npm run lint
|
|
npm run dist
|
|
build-windows:
|
|
name: Windows
|
|
runs-on: windows-2019
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '16'
|
|
- name: Build it
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
npm install
|
|
npm run dist
|