mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 11:28:21 +08:00
mdbx-ci: add dll-path-workaround to MinGW scenario with minor cleanup.
This commit is contained in:
parent
f38b1dab13
commit
0cd7dfb465
2
.github/actions/spelling/expect.txt
vendored
2
.github/actions/spelling/expect.txt
vendored
@ -1321,6 +1321,7 @@ proba
|
|||||||
proces
|
proces
|
||||||
procfs
|
procfs
|
||||||
progname
|
progname
|
||||||
|
programdata
|
||||||
PROGRAMLISTING
|
PROGRAMLISTING
|
||||||
projectbrief
|
projectbrief
|
||||||
projectlogo
|
projectlogo
|
||||||
@ -1415,6 +1416,7 @@ redis
|
|||||||
reedom
|
reedom
|
||||||
reefont
|
reefont
|
||||||
refname
|
refname
|
||||||
|
refreshenv
|
||||||
REGEX
|
REGEX
|
||||||
regexp
|
regexp
|
||||||
reinited
|
reinited
|
||||||
|
53
.github/workflows/MinGW.yml
vendored
53
.github/workflows/MinGW.yml
vendored
@ -27,38 +27,39 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: fetch tags
|
- name: fetch tags
|
||||||
run: git fetch --unshallow --tags --prune --force
|
run: git fetch --unshallow --tags --prune --force
|
||||||
|
- name: append PATH
|
||||||
|
run: echo 'C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin' >> $GITHUB_PATH
|
||||||
- name: update mingw64
|
- name: update mingw64
|
||||||
# wanna version >= 10.2
|
# wanna version >= 10.2
|
||||||
run: choco upgrade mingw -y --no-progress
|
run: choco upgrade mingw -y --no-progress && refreshenv
|
||||||
- name: configure-dll
|
- name: configure-dll
|
||||||
run: mkdir build-dll && cd build-dll && cmake -G "MinGW Makefiles" -DMDBX_BUILD_SHARED_LIBRARY:BOOL=ON -DMDBX_INSTALL_STATIC:BOOL=OFF ..
|
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 ..
|
||||||
- name: build-dll
|
- name: build-dll
|
||||||
|
shell: bash
|
||||||
run: cd build-dll && cmake --build .
|
run: cd build-dll && cmake --build .
|
||||||
- name: test-dll
|
- name: test-dll
|
||||||
shell: pwsh
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd build-dll
|
export "PATH=/c/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin:$PATH" && \
|
||||||
ls
|
cd build-dll && \
|
||||||
./mdbx_test --progress --console=no --pathname=test.db --dont-cleanup-after basic > test.log
|
./mdbx_test.exe --progress --console=no --pathname=test.db --dont-cleanup-after basic && \
|
||||||
Get-Content test.log | Select-Object -last 42
|
./mdbx_chk.exe -nvv test.db
|
||||||
if ($LastExitCode -ne 0) {
|
|
||||||
throw "Exec: $ErrorMessage"
|
|
||||||
} else {
|
|
||||||
./mdbx_chk -nvv test.db | Tee-Object -file chk.log | Select-Object -last 42
|
|
||||||
}
|
|
||||||
- name: configure-static
|
- name: configure-static
|
||||||
run: mkdir build-static && cd build-static && cmake -G "MinGW Makefiles" -DMDBX_BUILD_SHARED_LIBRARY:BOOL=OFF -DMDBX_INSTALL_STATIC:BOOL=ON ..
|
shell: bash
|
||||||
- name: build-static
|
|
||||||
run: cd build-static && cmake --build .
|
|
||||||
- name: test-static
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
run: |
|
||||||
cd build-static
|
mkdir build-static && cd build-static && \
|
||||||
ls
|
cmake -G "MinGW Makefiles" -DMDBX_BUILD_SHARED_LIBRARY:BOOL=OFF -DMDBX_INSTALL_STATIC:BOOL=ON -DMDBX_ENABLE_TESTS:BOOL=ON ..
|
||||||
./mdbx_test --progress --console=no --pathname=test.db --dont-cleanup-after basic > test.log
|
- name: build-static
|
||||||
Get-Content test.log | Select-Object -last 42
|
shell: bash
|
||||||
if ($LastExitCode -ne 0) {
|
run: |
|
||||||
throw "Exec: $ErrorMessage"
|
cd build-static && cmake --build .
|
||||||
} else {
|
- name: test-static
|
||||||
./mdbx_chk -nvv test.db | Tee-Object -file chk.log | Select-Object -last 42
|
shell: bash
|
||||||
}
|
run: |
|
||||||
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user