Skip to content

Commit

Permalink
ci: fix rust tests not having correct version of libwebkit2gtk
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Aug 22, 2024
1 parent 85bad4c commit 6f67732
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libsoup-3.0-dev
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

Expand Down
40 changes: 18 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,36 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
test:

runs-on: ubuntu-latest

steps:
- name: install just
uses: extractions/setup-just@v1

- name: setup
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev glibc-source libc6
- name: install just
uses: extractions/setup-just@v1

- name: Rust setup
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: setup
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev glibc-source libc6
- name: Install leptosfmt
run: cargo install leptosfmt
- name: Rust setup
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy

- name: Checkout source code
uses: actions/checkout@v3
- name: Checkout source code
uses: actions/checkout@v3

- name: Runs tests
run: just test
- name: Runs tests
run: just test

- name: Run lints
run: just test
- name: Run lints
run: just test

0 comments on commit 6f67732

Please sign in to comment.