Skip to content
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
25 changes: 17 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
release:
types: [ published ]
workflow_dispatch:

env:
BUILD_TYPE: Release
Expand All @@ -13,7 +16,10 @@ jobs:
if: >-
github.event.pull_request.draft == false

runs-on: windows-latest
runs-on: windows-2022

permissions:
contents: read

strategy:
fail-fast: false
Expand All @@ -25,7 +31,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1

- name: Configure
run: >
Expand All @@ -40,7 +46,7 @@ jobs:
cmake --build build --config ${{ env.BUILD_TYPE }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7.0.1
with:
name: PyStand-${{ matrix.arch }}-${{ matrix.subsystem }}
path: build/${{ env.BUILD_TYPE }}
Expand All @@ -59,7 +65,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7.0.1

- name: Setup WinLibs
run: |
Expand Down Expand Up @@ -87,21 +93,24 @@ jobs:
cmake --build build --config ${{ env.BUILD_TYPE }}

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7.0.1
with:
name: PyStand-${{ matrix.sys }}-${{ matrix.subsystem }}
path: build\PyStand.exe

release:
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release'

runs-on: windows-latest

needs: [ build-msvc, build-gcc ]

permissions:
contents: write

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8.0.1

- name: List downloaded files
run: ls -R
Expand All @@ -121,7 +130,7 @@ jobs:
PyStand-mingw64-GUI

- name: Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down