- - name: Generate build tree (${{ env.CMAKE_BUILD_TYPE }})
- run: cmake --config ${{ env.CMAKE_BUILD_TYPE }} -S . -B build
- - name: Build all with ${{ env.CC_VND }}
- run: cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }}
- - name: Install
- run: cmake --install build --prefix installed --config ${{ env.CMAKE_BUILD_TYPE }}
- - name: Package
- env:
- PUSH_ARTIFACTS_ID: ${{ secrets.PUSH_ARTIFACTS_ID }}
- run: |
- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} --target package
- cmake --build build --config ${{ env.CMAKE_BUILD_TYPE }} --target push-artifacts
+<?php steps(false);?>
+
+ # win mingw build (set PATH=%PATH%;c:\msys64\mingw64\bin)
+ win-msvc:
+ name: win-mingw (<?=DEF["Windows"]?>, mingw, <?=DEF["mingw"]["ver"]?>)
+ runs-on: <?=DEF["Windows"]?> #
+ env:
+ CMAKE_BUILD_TYPE: "Release"
+ CMAKE_GENERATOR: "MinGW Makefiles"
+ BISON_ROOT: "C:/msys64/usr"
+ FLEX_ROOT: "C:/msys64/usr"
+<?php env_override("Windows", "mingw")?>
+ continue-on-error: true
+ steps:
+ - uses: actions/checkout@v2
+ - uses: msys2/setup-msys2@v2
+ with:
+ release: false
+ install: >-
+ rsync
+ openssh
+ mingw-w64-x86_64-toolchain
+<?php steps(false);?>