Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Build Check

on:
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'src-tauri/**'
- "src-tauri/**"
- ".github/workflows/**"

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,16 +20,16 @@ jobs:
build:
name: Build Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
node-version: "lts/*"
cache: "npm"

- name: Cache Linux Dependencies
id: cache-apt
uses: actions/cache@v3
Expand All @@ -40,6 +41,11 @@ jobs:
restore-keys: |
${{ runner.os }}-apt-

- name: Add Ubuntu Jammy repo for WebKitGTK 4.0
run: |
echo "deb http://archive.ubuntu.com/ubuntu jammy main universe" | sudo tee -a /etc/apt/sources.list
sudo apt update

- name: Install Linux Dependencies
run: |
sudo rm -rf /var/cache/apt/archives/lock
Expand All @@ -58,6 +64,11 @@ jobs:
libsoup-3.0-dev \
libwebkit2gtk-4.1-dev

- name: Remove Jammy repo
run: |
sudo sed -i '/jammy main universe/d' /etc/apt/sources.list
sudo apt update

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
Expand All @@ -75,13 +86,13 @@ jobs:
with:
workspaces: "./src-tauri -> target"
shared-key: "build"

- name: Install Dependencies
run: npm ci

- name: Build Application
run: |
npm run tauri build -- \
--target x86_64-unknown-linux-gnu \
--bundles deb \
--ci
--ci