Skip to content

Commit b20721b

Browse files
authored
Merge pull request #161 from Abdenasser/fix-build-check-workflow
libjavascriptcoregtk-4.0-dev is only in Ubuntu 22.04 (Jammy)
2 parents 8269d6f + 0389a81 commit b20721b

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

.github/workflows/build-check.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Build Check
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches: [main]
66
paths:
7-
- 'src-tauri/**'
7+
- "src-tauri/**"
8+
- ".github/workflows/**"
89

910
env:
1011
CARGO_TERM_COLOR: always
@@ -19,16 +20,16 @@ jobs:
1920
build:
2021
name: Build Check
2122
runs-on: ubuntu-latest
22-
23+
2324
steps:
2425
- uses: actions/checkout@v4
25-
26+
2627
- name: Setup Node.js
2728
uses: actions/setup-node@v4
2829
with:
29-
node-version: 'lts/*'
30-
cache: 'npm'
31-
30+
node-version: "lts/*"
31+
cache: "npm"
32+
3233
- name: Cache Linux Dependencies
3334
id: cache-apt
3435
uses: actions/cache@v3
@@ -40,6 +41,11 @@ jobs:
4041
restore-keys: |
4142
${{ runner.os }}-apt-
4243
44+
- name: Add Ubuntu Jammy repo for WebKitGTK 4.0
45+
run: |
46+
echo "deb http://archive.ubuntu.com/ubuntu jammy main universe" | sudo tee -a /etc/apt/sources.list
47+
sudo apt update
48+
4349
- name: Install Linux Dependencies
4450
run: |
4551
sudo rm -rf /var/cache/apt/archives/lock
@@ -58,6 +64,11 @@ jobs:
5864
libsoup-3.0-dev \
5965
libwebkit2gtk-4.1-dev
6066
67+
- name: Remove Jammy repo
68+
run: |
69+
sudo sed -i '/jammy main universe/d' /etc/apt/sources.list
70+
sudo apt update
71+
6172
- name: Install Rust
6273
uses: dtolnay/rust-toolchain@stable
6374
with:
@@ -75,13 +86,13 @@ jobs:
7586
with:
7687
workspaces: "./src-tauri -> target"
7788
shared-key: "build"
78-
89+
7990
- name: Install Dependencies
8091
run: npm ci
81-
92+
8293
- name: Build Application
8394
run: |
8495
npm run tauri build -- \
8596
--target x86_64-unknown-linux-gnu \
8697
--bundles deb \
87-
--ci
98+
--ci

0 commit comments

Comments
 (0)