Skip to content

linux-build

linux-build #8

Workflow file for this run

name: linux-build
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '21'
- name: Install dependencies
run: |
sudo apt install -y build-essential \
pkg-config \
libgtk-3-dev \
libssl-dev \
libjavascriptcoregtk-4.1-dev \
libsoup-3.0-dev \
libwebkit2gtk-4.1-dev
- name: build app
run: |
cd gui
yarn install
yarn build-ztm-linux
NODE_OPTIONS="--max-old-space-size=4096" yarn build:base
- uses: actions/upload-artifact@v2
with:
name: rpm
path: ./gui/src-tauri/target/release/bundle/rpm/ztm-${{ vars.APP_VERSION }}-1.x86_64.rpm
- uses: actions/upload-artifact@v2
with:
name: deb
path: ./gui/src-tauri/target/release/bundle/deb/ztm_${{ vars.APP_VERSION }}_amd64.deb
- uses: actions/upload-artifact@v2
with:
name: appimage
path: ./gui/src-tauri/target/release/bundle/appimage/ztm_${{ vars.APP_VERSION }}_amd64.AppImage