Initial commit #1
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: CI | |
| on: [push, pull_request] | |
| jobs: | |
| ci_mingw: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/tupoyemenu/yimmenu:latest | |
| name: CI MinGW | |
| steps: | |
| - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - uses: actions/checkout@v4 | |
| - name: Check CMake version | |
| run: cmake --version | |
| - name: Generate CMake project | |
| run: cmake -DVERSION=1.3.4 -DCMAKE_BUILD_TYPE:STRING=Release -S. -Bbuild -DCROSSCOMPILE:BOOL=TRUE -DUSE_GCC:BOOL=TRUE -G Ninja | |
| - name: Build 64bit release DLL | |
| run: cmake --build build --config Release | |
| - name: Rename DLL to libBigBaseV2-dev-{GITHUB_SHA}.dll | |
| run: mv libBigBaseV2.dll libBigBaseV2-dev-${{github.sha}}.dll | |
| working-directory: build/ | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: binary-MinGW | |
| path: build/libBigBaseV2-dev-*.dll | |
| ci_msvc: | |
| runs-on: windows-latest | |
| name: CI MSVC | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check CMake version | |
| run: cmake --version | |
| - name: Add msbuild to PATH | |
| uses: microsoft/setup-msbuild@v1 | |
| - name: Generate CMake project | |
| run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release | |
| - name: Build 64bit release DLL | |
| run: cmake --build build --config Release --target ALL_BUILD | |
| - name: Rename DLL to BigBaseV2-dev-{GITHUB_SHA}.dll | |
| run: ren BigBaseV2.dll BigBaseV2-dev-${{github.sha}}.dll | |
| working-directory: build/Release/ | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: binary-MSVC | |
| path: build/Release/BigBaseV2-dev-*.dll |