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: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, "windows-latest"] msystem: [mingw64]
os: [windows-latest]
arch: [x86_64] arch: [x86_64]
confs: mode: [debug]
- { mode: debug, archive: yes }
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
defaults:
run:
shell: msys2 {0}
steps: steps:
- name: Get current date as package key - name: Get current date as package key
id: cache_key id: cache_key
@@ -38,6 +42,13 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 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) # Force xmake to a specific folder (for cache)
- name: Set xmake env - name: Set xmake env
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV

View File

@@ -25,12 +25,15 @@ jobs:
msystem: [mingw64] msystem: [mingw64]
os: [windows-latest] os: [windows-latest]
arch: [x86_64] arch: [x86_64]
confs: mode: [debug]
- { mode: debug, archive: yes }
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
defaults:
run:
shell: msys2 {0}
steps: steps:
- name: Get current date as package key - name: Get current date as package key
id: cache_key id: cache_key
@@ -39,6 +42,13 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 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) # Force xmake to a specific folder (for cache)
- name: Set xmake env - name: Set xmake env
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV