Skip to content

Commit deefec7

Browse files
authored
Don't set up platform if dependency is not satisfied.
1 parent 8e7496d commit deefec7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
with:
4141
version: ${{ matrix.julia-version }}
4242
arch: ${{ matrix.julia-arch }}
43+
- name: Test loadability
44+
run: julia --project=@. -e 'using Pkg;Pkg.instantiate();using Webviews'
4345
- name: Set up dependency on Linux
4446
if: matrix.os == 'ubuntu-latest'
4547
run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev

src/Webviews.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ end
9797

9898
function __init__()
9999
download_libwebview()
100-
_check_dependency()
101-
_setup_platform()
100+
if _check_dependency()
101+
_setup_platform()
102+
end
102103
nothing
103104
end
104105

0 commit comments

Comments
 (0)