Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
platform: [x64, ARM64]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore /p:Platform=${{ matrix.platform }}
- name: Test
if: ${{matrix.platform == 'x64'}}
run: dotnet test --no-build --verbosity normal /p:Platform=${{ matrix.platform }}
- name: Get short commit sha
run: echo "SHORT_SHA=$($GITHUB_SHA.Substring(0, 7))" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.platform }}-${{ SHORT_SHA }}

Check failure on line 43 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 43, Col: 17): Unrecognized named-value: 'SHORT_SHA'. Located at position 1 within expression: SHORT_SHA
path: |
**/bin
**/obj
if-no-files-found: error
overwrite: true