Force use gcc #11
This file contains 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: Windows Build | |
on: | |
push: | |
branches: [ "gh-pipeline" ] | |
pull_request: | |
branches: [ "gh-pipeline" ] | |
jobs: | |
build-and-upload: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
arch: [x64] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Install GCC x64 | |
if: ${{ matrix.arch == 'x64' }} | |
# Shell must be a valid built-in (bash, sh, cmd, powershell, pwsh) | |
run: | | |
ridk exec pacman -S mingw-w64-ucrt-x86_64-gcc --noconfirm | |
# ridk exec pacman -S mingw-w64-ucrt-x86_64-make --noconfirm | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Compile chsrc x64 | |
run: cd D:\a\chsrc\chsrc ; ridk exec make | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
# Artifact name | |
name: chsrc-windows-${{matrix.arch}}.exe | |
path: chsrc.exe | |
# The desired behavior if no files are found using the provided path. | |
warn: Output a warning but do not fail the action | |
error: Fail the action with an error message | |