Set MinGW GCC Bash terminal as default on vscode. #29
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 on Windows | |
| on: [push, pull_request] | |
| env: | |
| USERNAME: AeonGames | |
| VCPKG_EXE: C:/vcpkg/vcpkg.exe | |
| FEED_URL: https://nuget.pkg.github.com/AeonGames/index.json | |
| VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/AeonGames/index.json,readwrite" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| compiler: [msvc] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Add NuGet sources | |
| shell: pwsh | |
| run: | | |
| .$(${{ env.VCPKG_EXE }} fetch nuget) ` | |
| sources add ` | |
| -Source "${{ env.FEED_URL }}" ` | |
| -StorePasswordInClearText ` | |
| -Name GitHubPackages ` | |
| -UserName "${{ env.USERNAME }}" ` | |
| -Password "${{ secrets.GITHUB_TOKEN }}" | |
| .$(${{ env.VCPKG_EXE }} fetch nuget) ` | |
| setapikey "${{ secrets.GITHUB_TOKEN }}" ` | |
| -Source "${{ env.FEED_URL }}" | |
| if: matrix.compiler == 'msvc' | |
| - name: Install VCPKG Dependencies | |
| run: ${{env.VCPKG_EXE}} install --binarysource="${{env.VCPKG_BINARY_SOURCES}}" --x-manifest-root=${{github.workspace}} | |
| if: matrix.compiler == 'msvc' | |
| - name: Configure CMake (Windows Visual Studio) | |
| run: cmake -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" -B ${{github.workspace}}/build | |
| if: matrix.compiler == 'msvc' | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build |