Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI] Add depsrc matrix to mingw build #2392

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
matrix:
config: [debug, release]
msystem: [mingw32, mingw64]
depsrc: [none, contrib, system]
cc: [mingw]
include:
- platform: x86
msystem: mingw32
Expand All @@ -115,14 +117,22 @@ jobs:
make
pacboy: >-
toolchain:p
- name: Install dependencies
if: matrix.depsrc == 'system' && matrix.platform == 'x64'
run: |
pacman -Suy --noconfirm mingw-w64-x86_64-curl mingw-w64-x86_64-lua53 mingw-w64-x86_64-libzip mingw-w64-x86_64-zlib
- name: Install dependencies
if: matrix.depsrc == 'system' && matrix.platform == 'x86'
run: |
pacman -Suy --noconfirm mingw-w64-i686-curl mingw-w64-i686-lua53 mingw-w64-i686-libzip mingw-w64-i686-zlib
- name: Build
run: PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} ./Bootstrap.sh
run: PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--lib-src=${{ matrix.depsrc }} --cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
run: bin/${{ matrix.config }}/premake5.exe test --test-all
- name: Docs check
run: bin/${{ matrix.config }}/premake5.exe docs-check
- name: Upload Artifacts
if: matrix.config == 'release'
if: matrix.config == 'release' && matrix.depsrc == 'contrib' && matrix.cc == 'mingw'
uses: actions/upload-artifact@v4
with:
name: premake-${{ matrix.msystem }}-${{ matrix.platform }}
Expand Down
Loading