tabby/.github/workflows/linux.yml

99 lines
2.3 KiB
YAML
Raw Normal View History

2019-08-26 20:21:23 +00:00
name: Linux Build
on: [push, pull_request]
jobs:
build:
2021-05-12 07:12:07 +00:00
runs-on: ubuntu-18.04
2019-08-26 20:21:23 +00:00
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
2021-05-15 17:25:13 +00:00
with:
fetch-depth: 0
2021-05-16 16:58:46 +00:00
- name: Install Node
uses: actions/setup-node@v2.1.5
with:
2021-05-16 16:58:46 +00:00
node-version: 14
2019-08-30 13:41:04 +00:00
- name: Install deps
2019-08-26 20:21:23 +00:00
run: |
2021-05-12 07:12:07 +00:00
sudo apt-get install bsdtar
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
2021-03-02 20:58:15 +00:00
./node_modules/.bin/patch-package
2021-03-02 21:01:42 +00:00
cd app
../node_modules/.bin/patch-package
cd ..
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
2021-01-04 19:44:24 +00:00
./scripts/sentry-upload.js
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
2021-05-02 18:02:46 +00:00
mkdir artifact-pacman
mv dist/*.pacman artifact-pacman/ || 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:
2021-05-02 18:02:46 +00:00
name: Linux DEB
2019-08-26 20:21:23 +00:00
path: artifact-deb
- uses: actions/upload-artifact@master
name: Upload RPM
with:
2021-05-02 18:02:46 +00:00
name: Linux RPM
2019-08-26 20:21:23 +00:00
path: artifact-rpm
2021-05-02 18:02:46 +00:00
- uses: actions/upload-artifact@master
name: Upload Pacman Package
with:
name: Linux Pacman
path: artifact-pacman
2019-08-26 20:21:23 +00:00
- uses: actions/upload-artifact@master
name: Upload Snap
with:
2021-05-02 18:02:46 +00:00
name: Linux Snap
2019-08-26 20:21:23 +00:00
path: artifact-snap
- uses: actions/upload-artifact@master
name: Upload tarball
with:
name: Linux tarball
path: artifact-tar.gz