Skip to content

Commit

Permalink
add test on github
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Jun 26, 2024
1 parent 5f77718 commit c4086f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config Debug --verbose

- name: Run tests
working-directory: ${{runner.workspace}}/build
run: ./Debug/min_broken.exe

- name: Create Archive
working-directory: ${{runner.workspace}}
run: '&($Env:GITHUB_WORKSPACE + "/make_windows_package.ps1") ./build ($Env:GITHUB_WORKSPACE + "/root")'
Expand Down
7 changes: 6 additions & 1 deletion min_broken/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#include <stdio.h>
#include <mutex>

std::recursive_mutex mtx;

int main() {
std::recursive_mutex mtx;
std::lock_guard<std::recursive_mutex> lck(mtx);

printf("Works just fine!\n");

return 0;
}

0 comments on commit c4086f5

Please sign in to comment.