2019-08-26 23:21:23 +03:00
|
|
|
name: Linux Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-05-12 10:12:07 +03:00
|
|
|
runs-on: ubuntu-18.04
|
2019-08-26 23:21:23 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
2020-03-01 15:30:14 +03:00
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-12-24 18:16:13 +03:00
|
|
|
node-version: 15
|
2020-03-01 15:30:14 +03:00
|
|
|
|
2019-08-30 16:41:04 +03:00
|
|
|
- name: Install deps
|
2019-08-26 23:21:23 +03:00
|
|
|
run: |
|
2021-05-12 10:12:07 +03:00
|
|
|
sudo apt-get install bsdtar
|
2019-10-14 06:23:09 +03:00
|
|
|
npm i -g yarn@1.19.1
|
2019-08-26 23:21:23 +03:00
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
|
|
|
yarn
|
2021-03-02 23:58:15 +03:00
|
|
|
./node_modules/.bin/patch-package
|
2021-03-03 00:01:42 +03:00
|
|
|
cd app
|
|
|
|
../node_modules/.bin/patch-package
|
|
|
|
cd ..
|
2019-08-30 16:41:04 +03:00
|
|
|
|
|
|
|
- name: Build native deps
|
|
|
|
run: scripts/build-native.js
|
|
|
|
|
2019-08-30 16:59:59 +03:00
|
|
|
- name: Webpack
|
|
|
|
run: yarn run build
|
|
|
|
|
|
|
|
- name: Prepackage plugins
|
|
|
|
run: scripts/prepackage-plugins.js
|
2019-08-30 16:41:04 +03:00
|
|
|
|
|
|
|
- name: Build packages
|
2019-08-30 18:06:44 +03:00
|
|
|
run: scripts/build-linux.js
|
2019-08-26 23:21:23 +03:00
|
|
|
env:
|
2019-08-30 18:06:44 +03:00
|
|
|
DEBUG: electron-builder,electron-builder:*
|
2019-08-26 23:21:23 +03:00
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
2021-01-02 12:33:39 +03:00
|
|
|
USE_HARD_LINKS: false
|
2019-08-26 23:21:23 +03:00
|
|
|
|
2021-01-04 22:02:47 +03:00
|
|
|
- name: Upload symbols
|
|
|
|
run: |
|
|
|
|
sudo npm install -g @sentry/cli --unsafe-perm
|
2021-01-04 22:44:24 +03:00
|
|
|
./scripts/sentry-upload.js
|
2021-01-04 21:39:59 +03:00
|
|
|
env:
|
|
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
|
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
|
|
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
|
|
|
|
2019-08-26 23:21:23 +03:00
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
|
|
|
mkdir artifact-deb
|
2019-08-30 18:44:38 +03:00
|
|
|
mv dist/*.deb artifact-deb/ || true
|
2019-08-26 23:21:23 +03:00
|
|
|
mkdir artifact-rpm
|
2019-08-30 18:44:38 +03:00
|
|
|
mv dist/*.rpm artifact-rpm/ || true
|
2021-05-02 21:02:46 +03:00
|
|
|
mkdir artifact-pacman
|
|
|
|
mv dist/*.pacman artifact-pacman/ || true
|
2019-08-26 23:21:23 +03:00
|
|
|
mkdir artifact-snap
|
2019-08-30 18:44:38 +03:00
|
|
|
mv dist/*.snap artifact-snap/ || true
|
2019-08-26 23:21:23 +03:00
|
|
|
mkdir artifact-tar.gz
|
2019-08-30 18:44:38 +03:00
|
|
|
mv dist/*.tar.gz artifact-tar.gz/ || true
|
2019-08-26 23:21:23 +03:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload DEB
|
|
|
|
with:
|
2021-05-02 21:02:46 +03:00
|
|
|
name: Linux DEB
|
2019-08-26 23:21:23 +03:00
|
|
|
path: artifact-deb
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload RPM
|
|
|
|
with:
|
2021-05-02 21:02:46 +03:00
|
|
|
name: Linux RPM
|
2019-08-26 23:21:23 +03:00
|
|
|
path: artifact-rpm
|
|
|
|
|
2021-05-02 21:02:46 +03:00
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload Pacman Package
|
|
|
|
with:
|
|
|
|
name: Linux Pacman
|
|
|
|
path: artifact-pacman
|
|
|
|
|
2019-08-26 23:21:23 +03:00
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload Snap
|
|
|
|
with:
|
2021-05-02 21:02:46 +03:00
|
|
|
name: Linux Snap
|
2019-08-26 23:21:23 +03:00
|
|
|
path: artifact-snap
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
name: Upload tarball
|
|
|
|
with:
|
|
|
|
name: Linux tarball
|
|
|
|
path: artifact-tar.gz
|