CI: Install MinGW via `egor-tensin/setup-mingw`

Scoop install is being problematic since their 0.1.0 release.
pull/723/head
Rémi Verschelde 2022-03-09 13:07:46 +01:00
parent b6c18d489d
commit 3846201fbb
1 changed files with 6 additions and 13 deletions

View File

@ -69,14 +69,9 @@ jobs:
run: | run: |
python -m pip install scons python -m pip install scons
- name: Windows GCC dependency - name: Setup MinGW for Windows/MinGW build
if: ${{ matrix.platform == 'windows' }} if: ${{ matrix.platform == 'windows' && matrix.flags == 'use_mingw=yes' }}
# Install GCC from Scoop as the default supplied GCC doesn't work ("Error 1"). uses: egor-tensin/setup-mingw@v2
run: |
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop install gcc
g++ --version
gcc --version
- name: Build godot-cpp (debug) - name: Build godot-cpp (debug)
run: | run: |
@ -218,13 +213,11 @@ jobs:
run: | run: |
python -m pip install scons python -m pip install scons
- name: Setup MinGW for Windows/MinGW build
uses: egor-tensin/setup-mingw@v2
- name: Build godot-cpp - name: Build godot-cpp
# Install GCC from Scoop as the default supplied GCC doesn't work ("Error 1").
run: | run: |
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop install gcc
g++ --version
gcc --version
scons target=release generate_bindings=yes use_mingw=yes -j $env:NUMBER_OF_PROCESSORS scons target=release generate_bindings=yes use_mingw=yes -j $env:NUMBER_OF_PROCESSORS
#- name: Build test project (TODO currently not supported, leaving uncommented as a reminder to fix this) #- name: Build test project (TODO currently not supported, leaving uncommented as a reminder to fix this)