Update GitHub Actions to use upload-artifact@v4 (#394) #412
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 | |
| on: [push, pull_request] | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| shell: msys2 {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: MINGW64 | |
| update: true | |
| install: git base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-hidapi make | |
| - name: Build | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake -G"MSYS Makefiles" .. | |
| make | |
| - name: Test | |
| run: | | |
| cd build | |
| make test | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: headsetcontrol.exe | |
| path: build/headsetcontrol.exe |