Skip to content

Commit

Permalink
Don't set up platform if dependency is not satisfied.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunoru authored Nov 22, 2022
1 parent 8e7496d commit deefec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/Webviews.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ end

function __init__()
download_libwebview()
_check_dependency()
_setup_platform()
if _check_dependency()
_setup_platform()
end
nothing
end

Expand Down

2 comments on commit deefec7

@sunoru
Copy link
Owner Author

@sunoru sunoru commented on deefec7 Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/72700

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" deefec788074877c80ebe2b7adf699c4ba38ac16
git push origin v0.1.0

Please sign in to comment.