diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d10b8fa..02a3111 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,20 +4,37 @@ 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 @@ -25,14 +42,14 @@ jobs: 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 }} @@ -52,12 +69,10 @@ jobs: gvsbuild build --platform=${{ matrix.arch }} --vs-ver=${{ matrix.vstudio }} - --same-python --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 @@ -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"