jitsi-meet-electron/.github/workflows/ci.yml

87 lines
2.1 KiB
YAML
Raw Normal View History

2021-03-23 23:19:44 +01:00
name: CI
2020-07-02 08:51:34 +02:00
2021-03-23 23:19:44 +01:00
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
2020-07-02 08:51:34 +02:00
jobs:
2021-03-23 23:19:44 +01:00
build-linux:
name: Linux
runs-on: ubuntu-20.04
2020-07-02 08:51:34 +02:00
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2020-07-02 08:51:34 +02:00
with:
node-version: '16'
2021-03-23 23:19:44 +01:00
- name: Build it
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
2021-03-23 23:19:44 +01:00
npm run dist
- uses: actions/upload-artifact@v3.1.0
with:
name: linux-binaries
path: |
dist/jitsi-meet-amd64.deb
dist/jitsi-meet-x86_64.AppImage
dist/latest-linux.yml
2021-03-23 23:19:44 +01:00
build-mac:
name: macOS
runs-on: macos-11
2021-03-23 23:19:44 +01:00
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2021-03-23 23:19:44 +01:00
with:
node-version: '16'
- name: Prepare for app signing and notarization
env:
MAC_CERT_PASSWORD: ${{ secrets.mac_cert_password }}
if: ${{ env.MAC_CERT_PASSWORD }}
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
2021-03-23 23:19:44 +01:00
- name: Build it
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
2021-03-23 23:19:44 +01:00
npm run lint
npm run dist
- uses: actions/upload-artifact@v3.1.0
with:
name: mac-binaries
path: |
dist/jitsi-meet.dmg
dist/jitsi-meet.zip
dist/latest-mac.yml
2021-03-23 23:19:44 +01:00
build-windows:
name: Windows
runs-on: windows-2022
2021-03-23 23:19:44 +01:00
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2021-03-23 23:19:44 +01:00
with:
node-version: '16'
2021-03-23 23:19:44 +01:00
- name: Build it
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
2021-03-23 23:19:44 +01:00
npm run dist
- uses: actions/upload-artifact@v3.1.0
with:
name: windows-binaries
path: |
dist/jitsi-meet.exe
dist/latest.yml