From deefec788074877c80ebe2b7adf699c4ba38ac16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B9=E3=83=8E=E3=83=AB?= Date: Tue, 22 Nov 2022 19:54:03 +0000 Subject: [PATCH] Don't set up platform if dependency is not satisfied. --- .github/workflows/CI.yml | 2 ++ src/Webviews.jl | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1a9e85d..4932de1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -40,6 +40,8 @@ jobs: with: version: ${{ matrix.julia-version }} arch: ${{ matrix.julia-arch }} + - name: Test loadability + run: julia --project=@. -e 'using Pkg;Pkg.instantiate();using Webviews' - name: Set up dependency on Linux if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install libwebkit2gtk-4.0-dev diff --git a/src/Webviews.jl b/src/Webviews.jl index 457f791..f64d403 100644 --- a/src/Webviews.jl +++ b/src/Webviews.jl @@ -97,8 +97,9 @@ end function __init__() download_libwebview() - _check_dependency() - _setup_platform() + if _check_dependency() + _setup_platform() + end nothing end