Build Windows x64 #1
Workflow file for this run
This file contains hidden or 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: Build Windows x64 | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| git clone https://github.com/microsoft/vcpkg.git | |
| .\vcpkg\bootstrap-vcpkg.bat | |
| .\vcpkg\vcpkg install libsndfile wxwidgets | |
| - name: Build | |
| run: | | |
| cmake . -B build -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build --config Release | |
| Copy-Item -Path i18n -Destination build/dist/i18n -Recurse | |
| shell: pwsh | |
| - name: Extract version from tag | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - name: Zip Windows binary | |
| run: | | |
| Compress-Archive -Path build/dist/* -DestinationPath bmhelper_${{ env.VERSION }}_win-x64.zip | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bmhelper_${{ env.VERSION }}_win-x64 | |
| path: bmhelper_${{ env.VERSION }}_win-x64.zip |