add hero png #3
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up MSVC | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - name: Set up vcpkg | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgGitCommitId: b1b19307e2d2ec1eefbdb7ea069de7d4bcd31f01 | |
| - name: Configure | |
| run: cmake --preset default -DCMAKE_BUILD_TYPE=Release | |
| - name: Build | |
| run: cmake --build build | |
| - name: Unit tests | |
| run: build\lvt_unit_tests.exe | |
| - name: Integration tests | |
| run: build\lvt_integration_tests.exe | |
| - name: Package | |
| run: | | |
| New-Item -ItemType Directory -Path release -Force | |
| Copy-Item build\lvt.exe release\ | |
| Copy-Item build\lvt_tap.dll release\ | |
| New-Item -ItemType Directory -Path release\skills\lvt -Force | |
| Copy-Item .github\skills\lvt\SKILL.md release\skills\lvt\ | |
| Compress-Archive -Path release\* -DestinationPath lvt-${{ github.ref_name }}-x64.zip | |
| - name: Extract release notes from tag | |
| id: notes | |
| run: | | |
| $msg = git tag -l --format='%(contents)' ${{ github.ref_name }} | |
| # Write to file for multi-line support | |
| $msg | Out-File -FilePath release_notes.md -Encoding utf8 | |
| shell: pwsh | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: lvt-${{ github.ref_name }}-x64.zip | |
| body_path: release_notes.md |