Skip to content

Commit

Permalink
Test MinGW Build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jul 17, 2024
1 parent 6c8403f commit 81a78d9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,34 @@ jobs:
${ENV:CMAKE_BUILD_PARALLEL_LEVEL}=2
cmake --preset release -DENABLE_UNIT_TESTING=ON
cmake --build --preset release
build-mingw:
runs-on: windows-2022
container: amitie10g/msys2-mingw-w64-toolchain
steps:
- uses: actions/checkout@v3
- name: Set up vcpkg
run: |
git clone https://github.com/microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
- name: Download Unit Test Designs
run: |
${ENV:PYTHONUTF8}=1
git config --system core.longpaths true
python -m pip install -r test/py/requirements.txt
python test/py/testing.py --download_repos true --database_file_path repos.yaml --third_party_path test\designs
- name: Create Unit Tests
run: |
${ENV:PYTHONUTF8}=1
git config --system core.longpaths true
python test/py/testing.py --generate_unit_tests true --database_file_path repos.yaml --unit_test_path test\src\generated_tests --third_party_path test\designs
- name: Build Library and CLI Application
run: |
${ENV:MSYSTEM}=MINGW64
${ENV:VCPKG_ROOT}=$(Resolve-Path ./vcpkg)
${ENV:CMAKE_BUILD_PARALLEL_LEVEL}=2
cmake --preset release -DENABLE_UNIT_TESTING=ON
cmake --build --preset release

0 comments on commit 81a78d9

Please sign in to comment.