Update README.md #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: XMake Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: windows-latest | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
matrix: | |
build_configuration: [debug, release] # Build both configurations | |
architecture: [x64] | |
steps: | |
- name: Checkout Repository with Submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive # Fetch submodules recursively | |
fetch-depth: 0 # Ensures a full clone (needed for some submodules) | |
- name: Initialize and Update Submodules (if needed) | |
run: | | |
git submodule sync --recursive | |
git submodule update --init --recursive | |
- name: Install XMake | |
uses: xmake-io/github-action-setup-xmake@v1 | |
with: | |
xmake-version: latest | |
- name: Configure XMake | |
run: | | |
xmake f -m ${{ matrix.build_configuration }} -a ${{ matrix.architecture }} | |
- name: Build with XMake | |
run: | | |
xmake build | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.build_configuration }} | |
path: Build/${{ matrix.build_configuration }}/Internal/Internal.dll | |