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