2021-05-08 13:52:18 +03:00
|
|
|
name: MinGW
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2021-05-11 17:26:12 +03:00
|
|
|
branches: mingw
|
2021-05-08 13:52:18 +03:00
|
|
|
paths-ignore:
|
|
|
|
- '.circleci/**'
|
|
|
|
- '.github/actions/spelling/**'
|
|
|
|
- 'docs/**'
|
|
|
|
- 'packages**'
|
|
|
|
- .cirrus.yml
|
|
|
|
- .clang-format
|
|
|
|
- .gitignore
|
|
|
|
- .travis.yml
|
|
|
|
- AUTHORS
|
|
|
|
- COPYRIGHT
|
|
|
|
- ChangeLog.md
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- appveyor.yml
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-05-11 17:18:38 +03:00
|
|
|
runs-on: [windows-latest]
|
2021-05-08 13:52:18 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: fetch tags
|
|
|
|
run: git fetch --unshallow --tags --prune --force
|
2021-11-10 00:09:33 +03:00
|
|
|
- name: append PATH
|
|
|
|
run: echo 'C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin' >> $GITHUB_PATH
|
2021-05-11 17:18:38 +03:00
|
|
|
- name: update mingw64
|
|
|
|
# wanna version >= 10.2
|
2021-11-10 00:09:33 +03:00
|
|
|
run: choco upgrade mingw -y --no-progress && refreshenv
|
2021-05-11 17:18:38 +03:00
|
|
|
- name: configure-dll
|
2021-11-10 00:09:33 +03:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build-dll && cd build-dll && \
|
|
|
|
cmake -G "MinGW Makefiles" -DMDBX_BUILD_SHARED_LIBRARY:BOOL=ON -DMDBX_INSTALL_STATIC:BOOL=OFF -DMDBX_ENABLE_TESTS:BOOL=ON ..
|
2021-05-11 17:18:38 +03:00
|
|
|
- name: build-dll
|
2021-11-10 00:09:33 +03:00
|
|
|
shell: bash
|
2021-05-11 17:18:38 +03:00
|
|
|
run: cd build-dll && cmake --build .
|
|
|
|
- name: test-dll
|
2021-11-10 00:09:33 +03:00
|
|
|
shell: bash
|
2021-05-11 17:18:38 +03:00
|
|
|
run: |
|
2021-11-10 00:09:33 +03:00
|
|
|
export "PATH=/c/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin:$PATH" && \
|
|
|
|
cd build-dll && \
|
|
|
|
./mdbx_test.exe --progress --console=no --pathname=test.db --dont-cleanup-after basic && \
|
|
|
|
./mdbx_chk.exe -nvv test.db
|
2021-05-11 17:18:38 +03:00
|
|
|
- name: configure-static
|
2021-11-10 00:09:33 +03:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build-static && cd build-static && \
|
|
|
|
cmake -G "MinGW Makefiles" -DMDBX_BUILD_SHARED_LIBRARY:BOOL=OFF -DMDBX_INSTALL_STATIC:BOOL=ON -DMDBX_ENABLE_TESTS:BOOL=ON ..
|
2021-05-11 17:18:38 +03:00
|
|
|
- name: build-static
|
2021-11-10 00:09:33 +03:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
cd build-static && cmake --build .
|
2021-05-11 17:18:38 +03:00
|
|
|
- name: test-static
|
2021-11-10 00:09:33 +03:00
|
|
|
shell: bash
|
2021-05-11 17:18:38 +03:00
|
|
|
run: |
|
2021-11-10 00:09:33 +03:00
|
|
|
export "PATH=/c/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin:$PATH" && \
|
|
|
|
cd build-static && \
|
|
|
|
./mdbx_test.exe --progress --console=no --pathname=test.db --dont-cleanup-after basic && \
|
|
|
|
./mdbx_chk.exe -nvv test.db
|