Skip to content

Windows Build

Windows Build #36

Workflow file for this run

name: Windows Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ published ]
env:
artifacts: |
me7sum.exe
ME7Check.exe
README.md
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x86
- name: build
run: nmake
- uses: rlespinasse/github-slug-action@v4
if: ${{ github.event_name != 'release' }}
with:
short-length: 6
- uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'release' }}
with:
name: me7sum-${{ env.GITHUB_SHA_SHORT }}-win
path: ${{ env.artifacts }}
- name: Upload windows artifact to release
if: github.event_name == 'release' && github.event.action == 'published'
run: |

Check failure on line 38 in .github/workflows/windows-build.yml

View workflow run for this annotation

GitHub Actions / Windows Build

Invalid workflow file

The workflow is not valid. .github/workflows/windows-build.yml (Line: 38, Col: 12): Unrecognized named-value: 'ARTIFACTS'. Located at position 1 within expression: ARTIFACTS
setlocal enabledelayedexpansion
set "ARTIFACTS="
for /f "tokens=* delims=" %%a in ("${{ env.artifacts }}") do (
set "ARTIFACTS=!ARTIFACTS! %%a"
)
echo !ARTIFACTS!
7z a -tzip me7sum-${{ github.ref_name }}-win.zip "${{ ARTIFACTS }}"
gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-win.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}