|
10 | 10 | core-dump: |
11 | 11 | description: "Set to 1 to enable retrieving core dump from crashes" |
12 | 12 | default: "0" |
| 13 | + gvsbuild-tag: |
| 14 | + description: "Use an alternative gvsbuild release for the windows build. Defaults to latest." |
| 15 | + default: "latest" |
13 | 16 | jobs: |
14 | 17 | test-linux: |
15 | | - runs-on: ubuntu-22.04 |
16 | 18 | strategy: |
17 | 19 | matrix: |
18 | | - python-version: ["3.7", "3.10"] |
19 | | - |
| 20 | + python-version: ["3.9", "3.10"] |
| 21 | + os: ["ubuntu-24.04"] |
| 22 | + include: |
| 23 | + - os: ubuntu-22.04 |
| 24 | + python-version: 3.7 |
| 25 | + runs-on: ${{ matrix.os }} |
20 | 26 | steps: |
21 | 27 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
22 | 28 | - uses: actions/checkout@v4 |
|
74 | 80 | runs-on: windows-2022 |
75 | 81 | strategy: |
76 | 82 | matrix: |
77 | | - python-version: ["3.7", "3.10"] |
| 83 | + python-version: ["3.7", "3.9", "3.10"] |
| 84 | + arch: ["x64"] |
78 | 85 |
|
79 | 86 | steps: |
80 | 87 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
|
89 | 96 | cache: "pip" |
90 | 97 | cache-dependency-path: "requirements*.txt" |
91 | 98 |
|
| 99 | + - name: Determine gvsbuild release URL |
| 100 | + id: gvsbuild-url |
| 101 | + shell: bash |
| 102 | + run: | |
| 103 | + test -z "${{ github.event.inputs.gvsbuild-tag }}" && tag=latest || tag="${{ github.event.inputs.gvsbuild-tag }}" |
| 104 | + if [[ "$tag" == "latest" ]]; then URL="https://github.com/${{ github.repository_owner }}/gvsbuild-release/releases/$tag/download"; else URL="https://github.com/${{ github.repository_owner }}/gvsbuild-release/releases/download/$tag" ; fi |
| 105 | + echo "gvsbuild-release-url=$URL" >> $GITHUB_OUTPUT |
| 106 | +
|
| 107 | + - name: Install GTK |
| 108 | + run: | |
| 109 | + $WebClient = New-Object System.Net.WebClient |
| 110 | + $WebClient.DownloadFile("${{ steps.gvsbuild-url.outputs.gvsbuild-release-url }}/gvsbuild-py${{ matrix.python-version }}-vs17-${{matrix.arch}}.zip","C:\GTK.zip") |
| 111 | + 7z x C:\GTK.zip -oc:\GTK |
| 112 | + echo "C:\GTK\release\lib" | Out-File -FilePath $env:GITHUB_PATH -Append |
| 113 | + echo "C:\GTK\release\bin" | Out-File -FilePath $env:GITHUB_PATH -Append |
| 114 | + echo "C:\GTK\release" | Out-File -FilePath $env:GITHUB_PATH -Append |
| 115 | + python -m pip install --no-index --find-links="C:\GTK\release\python" pycairo PyGObject |
| 116 | +
|
92 | 117 | - name: Install dependencies |
93 | 118 | run: | |
94 | 119 | pip install --upgrade pip wheel setuptools |
|
0 commit comments