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
|
2021-11-02 07:12:48 +01:00
|
|
|
runs-on: ubuntu-20.04
|
2020-07-02 08:51:34 +02:00
|
|
|
steps:
|
2022-07-04 08:01:34 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2020-07-02 08:51:34 +02:00
|
|
|
with:
|
2021-11-16 22:38:33 +01:00
|
|
|
node-version: '16'
|
2021-03-23 23:19:44 +01:00
|
|
|
- name: Build it
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
2022-02-16 23:56:06 +01:00
|
|
|
npm ci
|
2021-03-23 23:19:44 +01:00
|
|
|
npm run dist
|
2022-07-04 08:01:34 +02:00
|
|
|
- uses: actions/upload-artifact@v3.1.0
|
2021-11-27 08:46:38 +01:00
|
|
|
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
|
2021-11-02 07:12:48 +01:00
|
|
|
runs-on: macos-11
|
2021-03-23 23:19:44 +01:00
|
|
|
steps:
|
2022-07-04 08:01:34 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2021-03-23 23:19:44 +01:00
|
|
|
with:
|
2021-11-16 22:38:33 +01:00
|
|
|
node-version: '16'
|
2022-01-11 20:11:28 +01:00
|
|
|
- name: Prepare for app signing and notarization
|
2022-01-11 20:14:39 +01:00
|
|
|
env:
|
2022-02-18 07:32:23 +01:00
|
|
|
MAC_CERT_PASSWORD: ${{ secrets.mac_cert_password }}
|
|
|
|
if: ${{ env.MAC_CERT_PASSWORD }}
|
2022-01-11 20:11:28 +01:00
|
|
|
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: |
|
2022-02-16 23:56:06 +01:00
|
|
|
npm ci
|
2021-03-23 23:19:44 +01:00
|
|
|
npm run lint
|
|
|
|
npm run dist
|
2022-07-04 08:01:34 +02:00
|
|
|
- uses: actions/upload-artifact@v3.1.0
|
2021-11-27 08:46:38 +01:00
|
|
|
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
|
2022-07-04 08:01:34 +02:00
|
|
|
runs-on: windows-2022
|
2021-03-23 23:19:44 +01:00
|
|
|
steps:
|
2022-07-04 08:01:34 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2021-03-23 23:19:44 +01:00
|
|
|
with:
|
2021-11-16 22:38:33 +01:00
|
|
|
node-version: '16'
|
2021-03-23 23:19:44 +01:00
|
|
|
- name: Build it
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
2022-02-16 23:56:06 +01:00
|
|
|
npm ci
|
2021-03-23 23:19:44 +01:00
|
|
|
npm run dist
|
2022-07-04 08:01:34 +02:00
|
|
|
- uses: actions/upload-artifact@v3.1.0
|
2021-11-27 08:46:38 +01:00
|
|
|
with:
|
|
|
|
name: windows-binaries
|
|
|
|
path: |
|
|
|
|
dist/jitsi-meet.exe
|
|
|
|
dist/latest.yml
|