Build actions for native mini tools #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Beep Build Action | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- .github/workflows/Beep.yaml | |
- beep/** | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- .github/workflows/Beep.yaml | |
- beep/** | |
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}} beep\beep.sln | |
- name: Copy Extra Files | |
if: ${{ matrix.configuration == 'Release' && matrix.platform == 'x64' }} | |
shell: pwsh | |
run: | | |
copy .\LICENSE ./beep/bin/${{matrix.platform}}/${{matrix.configuration}} | |
.\Scripts\makeProjReadme.ps1 Beep ./beep/bin/${{matrix.platform}}/${{matrix.configuration}}/README.md | |
- name: Upload Artifacts | |
if: ${{ matrix.configuration == 'Release' && matrix.platform == 'x64' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Beep-0.0.0.${{env.GITHUB_RUN_NUMBER}} | |
path: | | |
beep/bin/${{matrix.platform}}/${{matrix.configuration}} | |
!**/*.pdb | |
if-no-files-found: error |