Skip to content

Commit

Permalink
Merge branch 'ubuntu_test' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cars10 committed Dec 21, 2024
2 parents 5ad13c0 + 14b6589 commit 8660ac3
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ubuntu_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ubuntu_test

on:
workflow_dispatch:
push:
branches:
- ubuntu_test
jobs:
build_desktop:
name: Build desktop app for ${{ matrix.platform }}
strategy:
matrix:
platform: [ ubuntu-24.04 ]
runs-on: ${{ matrix.platform }}
env:
TAURI_SIGNING_PRIVATE_KEY: "${{ secrets.TAURI_PRIVATE_KEY }}"
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: "${{ secrets.TAURI_KEY_PASSWORD }}"

steps:
### system setup

- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '22.5.1'
cache: 'yarn'

- run: yarn

- run: rustup toolchain install stable

- name: linux > install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-0=2.44.0-2 libwebkit2gtk-4.1-dev=2.44.0-2 libjavascriptcoregtk-4.1-0=2.44.0-2 libjavascriptcoregtk-4.1-dev=2.44.0-2 gir1.2-javascriptcoregtk-4.1=2.44.0-2 gir1.2-webkit2-4.1=2.44.0-2 build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
### build linux

- name: linux > build
run: yarn tauri:build

- name: linux > upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux_artifacts
if-no-files-found: error
path: |
src-tauri/target/release/bundle/deb/elasticvue_*_amd64.deb
src-tauri/target/release/bundle/appimage/elasticvue_*_amd64.*
src-tauri/target/release/elasticvue
2 changes: 2 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ pub fn run() {
env_logger::init();

let ctx = tauri::generate_context!();
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");

tauri::Builder::default()
.plugin(tauri_plugin_process::init())
Expand Down

0 comments on commit 8660ac3

Please sign in to comment.