Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gvsbuild stack and allow releases using both a newer stack, as well as using the latest versions that still support python 3.7. #3

Merged
merged 8 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 39 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,52 @@ name: Release
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
ref:
description: "Enter a gvfsbuild tag or commit to release"
default: ""
inputs:
fork:
description: "Enter a gvsbuild fork for the build with the latest stack, defaults to wingtk."
default: "wingtk"
ref:
description: "Enter a git ref for checking out the above repository, defaults to main."
default: "main"

jobs:
build:
runs-on: windows-2019
runs-on: windows-2022
strategy:
matrix:
python: ["3.9", "3.10"]
platform: [x64, win32]
vstudio: [16]
vstudio: [17]
fork: ["${{ github.event.inputs.fork }}"]
ref: ["${{ github.event.inputs.ref }}"]
include:
- python: "3.7"
platform: x64
arch: x64
vstudio: 17
fork: "Lord-Kamina"
ref: "older"
- python: "3.7"
platform: win32
arch: x86
vstudio: 17
fork: "Lord-Kamina"
ref: "older"
- platform: x64
arch: x64
- platform: win32
arch: x86

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: wingtk/gvsbuild
repository: ${{ matrix.fork }}/gvsbuild
fetch-depth: 0
ref: ${{ github.event.inputs.ref }}
ref: ${{ matrix.ref }}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
Expand All @@ -52,12 +69,10 @@ jobs:
gvsbuild build
--platform=${{ matrix.arch }}
--vs-ver=${{ matrix.vstudio }}
--same-python
cas-- marked this conversation as resolved.
Show resolved Hide resolved
--enable-gi
--py-wheel
--skip gtksourceview4,emeus,clutter
--patches-root-dir=${{ github.workspace }}\patches
gtk3-full pycairo pygobject lz4 enchant
--patches-root-dir=${{ github.workspace }}\gvsbuild\patches
gtk3 pycairo pygobject wing lz4 enchant hicolor-icon-theme adwaita-icon-theme

- name: Restore git binary
run: Rename-Item "C:\Program Files\Git\usr\notbin" bin
Expand All @@ -72,12 +87,17 @@ jobs:

- name: Current Date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
shell: bash
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Release
uses: softprops/action-gh-release@v1
uses: ncipollo/release-action@v1
with:
name: latest
tag_name: latest
name: release-${{ steps.date.outputs.date }}
commit: ${{ github.sha }}
tag: release-${{ steps.date.outputs.date }}
body: gvsbuild-${{ steps.date.outputs.date }}
files: "*.zip"
makeLatest: true
allowUpdates: true
replacesArtifacts: true
artifacts: "*.zip"