This commit is contained in:
2025-04-13 20:59:32 +02:00
parent d0b572b5ae
commit 9b1846e1ab
2 changed files with 26 additions and 5 deletions

View File

@@ -22,14 +22,18 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, "windows-latest"]
msystem: [mingw64]
os: [windows-latest]
arch: [x86_64]
confs:
- { mode: debug, archive: yes }
mode: [debug]
runs-on: ${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
defaults:
run:
shell: msys2 {0}
steps:
- name: Get current date as package key
id: cache_key
@@ -38,6 +42,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
# Setup MSYS2
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install: base-devel git unzip p7zip mingw-w64-${{ matrix.arch }}-toolchain mingw-w64-${{ matrix.arch }}-xmake
update: true
# Force xmake to a specific folder (for cache)
- name: Set xmake env
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV