Skip to content

Build actions for native mini tools #2

Build actions for native mini tools

Build actions for native mini tools #2

Workflow file for this run

name: StartPwsh Build Action
on:
push:
branches: [ "main" ]
paths:
- .github/workflows/StartPwsh.yaml
- StartPwsh/**
pull_request:
branches: [ "main" ]
paths:
- .github/workflows/StartPwsh.yaml
- StartPwsh/**
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
configuration: [Debug, Release]
platform: [x64, x86]
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
working-directory: .
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{matrix.configuration}} /p:Platform=${{matrix.platform}} StartPwsh\StartPwsh.sln
- name: Copy Extra Files
if: ${{ matrix.configuration == 'Release' && matrix.platform == 'x64' }}
shell: pwsh
run: |
copy .\LICENSE ./StartPwsh/bin/${{matrix.platform}}/${{matrix.configuration}}
.\Scripts\makeProjReadme.ps1 StartPwsh ./StartPwsh/bin/${{matrix.platform}}/${{matrix.configuration}}/README.md
- name: Upload Artifacts
if: ${{ matrix.configuration == 'Release' && matrix.platform == 'x64' }}
uses: actions/upload-artifact@v4
with:
name: StartPwsh-0.0.0.${{env:GITHUB_RUN_NUMBER}}

Check failure on line 51 in .github/workflows/StartPwsh.yaml

View workflow run for this annotation

GitHub Actions / StartPwsh Build Action

Invalid workflow file

The workflow is not valid. .github/workflows/StartPwsh.yaml (Line: 51, Col: 15): Unexpected symbol: 'env:GITHUB_RUN_NUMBER'. Located at position 1 within expression: env:GITHUB_RUN_NUMBER
path: |
StartPwsh/bin/${{matrix.platform}}/${{matrix.configuration}}
!**/*.pdb
if-no-files-found: error