|
| 1 | +name: XboxAudio2 - Visual Studio 2022 |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [main, master] |
| 6 | + types: [opened, synchronize, reopened, closed] |
| 7 | + push: |
| 8 | + branches: [main, master] |
| 9 | + |
| 10 | +jobs: |
| 11 | + build: |
| 12 | + name: Build XboxAudio2 |
| 13 | + runs-on: windows-latest |
| 14 | + |
| 15 | + steps: |
| 16 | + - name: Checkout Repository |
| 17 | + uses: actions/checkout@v4.2.2 |
| 18 | + with: |
| 19 | + submodules: 'recursive' |
| 20 | + |
| 21 | + - name: Setup CMake |
| 22 | + uses: jwlawson/actions-setup-cmake@v2.0.2 |
| 23 | + |
| 24 | + - name: Configure CMake |
| 25 | + run: cmake -S . -B artifacts -G "Visual Studio 17 2022" -A x64 |
| 26 | + |
| 27 | + - name: Build Debug |
| 28 | + run: cmake --build artifacts --config Debug |
| 29 | + |
| 30 | + - name: Upload Debug Artifacts |
| 31 | + if: github.event_name == 'push' |
| 32 | + uses: actions/upload-artifact@v4 |
| 33 | + with: |
| 34 | + name: XboxAudio2 Debug |
| 35 | + compression-level: 9 |
| 36 | + path: | |
| 37 | + artifacts/Debug/*.dll |
| 38 | + artifacts/Debug/*.lib |
| 39 | + artifacts/Debug/*.pdb |
| 40 | + if-no-files-found: warn |
| 41 | + |
| 42 | + - name: Build Release |
| 43 | + run: cmake --build artifacts --config Release |
| 44 | + |
| 45 | + - name: Upload Release Artifacts |
| 46 | + if: github.event_name == 'push' |
| 47 | + uses: actions/upload-artifact@v4 |
| 48 | + with: |
| 49 | + name: XboxAudio2 Release |
| 50 | + compression-level: 9 |
| 51 | + path: | |
| 52 | + artifacts/Release/*.dll |
| 53 | + artifacts/Release/*.lib |
| 54 | + artifacts/Release/*.pdb |
| 55 | + if-no-files-found: warn |
0 commit comments