need powershell commands

This commit is contained in:
Martin Diehl 2022-05-08 22:09:10 +02:00
parent 3854547ce8
commit 268ff26232
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,13 @@ jobs:
export VERSION=$(cat VERSION) export VERSION=$(cat VERSION)
echo ${VERSION%-*} > VERSION echo ${VERSION%-*} > VERSION
- name: Strip git hash (Windows)
if: runner.os == 'Windows'
run: |
$VERSION = Get-Content VERSION -first 1
$VERSION,$_ = $VERSION -Split '-g',2,"simplematch"
$VERSION | Out-File VERSION
- name: Install and run unit tests (Unix) - name: Install and run unit tests (Unix)
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: | run: |