Skip to content

Commit

Permalink
build: fix python search for gobject integration
Browse files Browse the repository at this point in the history
  • Loading branch information
DjLegolas committed Apr 19, 2024
1 parent d03fb3d commit cd0b5e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/msvc-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,31 @@ on:
jobs:
build:
runs-on: windows-latest
name: Build with introspection=${{ matrix.build_introspection }}
env:
PYTHONIOENCODING: "utf-8"
GIR_BUILD: ""
strategy:
matrix:
build_introspection: [ "False", "True" ]
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
- uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Install GTK
if: contains(matrix.build_introspection, 'True')
run: |
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://github.com/deluge-torrent/gvsbuild-release/releases/download/latest/gvsbuild-py3.10-vs16-x64.zip","C:\GTK.zip")
7z x C:\GTK.zip -oC:\GTK
echo "C:\GTK\release\lib" | Out-File -FilePath $env:GITHUB_PATH -Append
echo "C:\GTK\release\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
echo "C:\GTK\release" | Out-File -FilePath $env:GITHUB_PATH -Append
echo "GIR_BUILD=-Dintrospection=enabled" >> $GITHUB_ENV
- uses: BSFishy/[email protected]
with:
action: test
directory: _build
setup-options: ${{ env.GIR_BUILD }}
options: "--verbose"
meson-version: "0.55.3"
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ graphene_dep_sources = []

# Introspection
if build_gir
python = python.find_installation('python3')
python = python.find_installation()
identfilter_py = join_paths(meson.current_source_dir(), 'identfilter.py')

gir_extra_args = [
Expand Down

0 comments on commit cd0b5e6

Please sign in to comment.