Skip to content

feat: Caching the project model, so it can be loaded as a cached enti… #3

feat: Caching the project model, so it can be loaded as a cached enti…

feat: Caching the project model, so it can be loaded as a cached enti… #3

name: GCC Tests For Windows MINGW based builds
on:
push:
branches: 'main'
pull_request:
branches: '*'
jobs:
tests:
name: Run the tests - GCC MinGW Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
# - { icon: '⬛', sys: mingw32 }

Check failure on line 17 in .github/workflows/tests-gcc-windows.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests-gcc-windows.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- { icon: '🟦', sys: mingw64 }
# - { icon: '🟨', sys: ucrt64 }
# - { icon: '🟧', sys: clang64 }
name: ${{ matrix.icon }} ${{ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
cache: true
update: true
install: >-
git
pacboy: >-
toolchain:p
cmake:p
ninja:p
- name: Cache 3rd party dependencies
id: cache-3rd-party-deps-restore
uses: actions/cache/restore@v3
with:
path: |
install
key: ${{ runner.os }}-cache-3rd-party-deps
- name: Caching project dependencies
id: project-cache
uses: Swatinem/rust-cache@v2
- name: Running the tests for the project
run: |
cd zork++
RUST_LOG=trace cargo test 2>&1 gcc_windows --color=always --no-fail-fast -- --nocapture --show-output --test-threads=1
- name: Cache 3rd party dependencies
id: cache-save-3rd-party-deps
uses: actions/cache/save@v3
with:
path: |
install
key: ${{ steps.cache-3rd-party-deps-restore.outputs.cache-primary-key }}