Skip to content

CI Linux and QA update #164

CI Linux and QA update

CI Linux and QA update #164

Workflow file for this run

name: Windows Build
on: [push, pull_request]
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
cancel-in-progress: true
jobs:
windows-vs:
name: win-vs 🏁
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
lib-type:
- static
- shared
graphics-api:
- DX11
- OpenGL
env:
HOST: ${{ github.job }}
PLATFORM: win-vs
LIB_TYPE: ${{ matrix.lib-type }}
GRAPHICS_API: ${{ matrix.graphics-api }}
URHO3D_DOCS: 0
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Set cache TTL
run: |
echo ("CACHE_MONTH=vs_" + $(date '+%b %Y')) >> $env:GITHUB_ENV
- name: CMake
run: rake cmake
- name: Build
run: rake build
- name: Test
run: rake test
if: matrix.graphics-api != 'OpenGL'
- name: Install
run: rake install
- name: Scaffolding - new
run: rake new
- name: Scaffolding - build
run: |
cd ~/projects/UrhoApp
rake
- name: Scaffolding - test
run: |
cd ~/projects/UrhoApp
rake test
if: matrix.graphics-api != 'OpenGL'
- name: Scaffolding - cleanup
run: rm -r -fo ~/.urho3d, ~/Projects
- name: Package
run: rake package
if: github.event_name == 'push'
- name: Upload
uses: actions/upload-artifact@v4
with:
name: win-vs-${{ matrix.lib-type }}-64-${{ matrix.graphics-api }}-rel
path: build/ci/*.zip
if: github.event_name == 'push'
windows-gcc:
name: win-gcc 🏁
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
lib-type:
- static
- shared
graphics-api:
- DX11
- OpenGL
env:
HOST: ${{ github.job }}
PLATFORM: win-gcc
LIB_TYPE: ${{ matrix.lib-type }}
GRAPHICS_API: ${{ matrix.graphics-api }}
URHO3D_DOCS: 0
MINGW_SYSROOT: 'C:/ProgramData/chocolatey/lib/mingw'
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Set cache TTL
run: |
echo ("CACHE_MONTH=gcc_" + $(date '+%b %Y')) >> $env:GITHUB_ENV
- name: Cache MinGW installation
id: cache-mingw
uses: actions/cache@v4
with:
path: C:\ProgramData\chocolatey\lib\mingw
key: ${{ env.CACHE_MONTH }}
- name: Set up MinGW
uses: egor-tensin/[email protected]
with:
version: 12.2.0
platform: x64
if: steps.cache-mingw.outputs.cache-hit != 'true'
- name: CMake
run: rake cmake
- name: Build
run: rake build
- name: Test
run: rake test
if: matrix.graphics-api != 'OpenGL'
- name: Install
run: rake install
- name: Scaffolding - new
run: rake new
- name: Scaffolding - build
run: |
cd ~/projects/UrhoApp
rake
- name: Scaffolding - test
run: |
cd ~/projects/UrhoApp
rake test
if: matrix.graphics-api != 'OpenGL'
- name: Scaffolding - cleanup
run: rm -r -fo ~/.urho3d, ~/Projects
- name: Package
run: rake package
if: github.event_name == 'push'
- name: Upload
uses: actions/upload-artifact@v4
with:
name: win-gcc-${{ matrix.lib-type }}-64-${{ matrix.graphics-api }}-rel
path: build/ci/*.zip
if: github.event_name == 'push'