Vutils #122
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: MINGW | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- 'Test/**' | |
- '**/*.md' | |
- '**/*.txt' | |
- '**/*.sys' | |
- '**/*.dll' | |
- '**/*.exe' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore MinGW Build Environment | |
id: Restore-MinGW-Build-Environment | |
uses: actions/cache/restore@v3 | |
with: | |
path: C:\ProgramData\chocolatey\lib\mingw\tools\install | |
key: ${{ runner.os }}-MinGW | |
restore-keys: ${{ runner.os }}-MinGW | |
- name: Setup MinGW Build Environment | |
if: steps.Restore-MinGW-Build-Environment.outputs.cache-hit != 'true' | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: x64 | |
version: '12.2.0' | |
- name: Store MinGW Build Environment | |
if: steps.Restore-MinGW-Build-Environment.outputs.cache-hit != 'true' | |
uses: actions/cache/save@v3 | |
with: | |
path: C:\ProgramData\chocolatey\lib\mingw\tools\install | |
key: ${{ runner.os }}-MinGW | |
- name: Verify MinGW Build Environment | |
shell: cmd | |
run: | | |
ECHO. | |
G++ --version | |
- name: Perform Building | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
shell: cmd | |
run: | | |
CD tools | |
SET VU_CI_BUILD=1 | |
MinGW.Build.Static.Library.CMD |