Skip to content

Fix broken GH action script #13

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
16 changes: 9 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@ on: [push]

jobs:
build:
runs-on: windows-latest
runs-on: windows-2025

steps:
- name: Checkout latest build
uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v4

- name: Declare some variables
id: vars
shell: bash
run: |
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
branch=$(echo ${GITHUB_REF#refs/heads/})
sha_short=$(git rev-parse --short HEAD)
echo "branch=${branch}" >> $GITHUB_OUTPUT
echo "sha_short=${sha_short}" >> $GITHUB_OUTPUT

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v2

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
Expand All @@ -27,7 +29,7 @@ jobs:
run: msbuild /m /p:Configuration=Release /p:Platform=x64 SimpleWindowSwitcher.sln

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: sws_bin_amd64_${{ steps.vars.outputs.sha_short }}_${{ steps.vars.outputs.branch }}
path: |
Expand Down