add test on github

This commit is contained in:
AlexandreRouma 2024-06-26 13:29:05 +02:00
parent 5f77718d75
commit c4086f5719
2 changed files with 10 additions and 1 deletions

View File

@ -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")'

View File

@ -1,7 +1,12 @@
#include <stdio.h>
#include <mutex>
int main() {
std::recursive_mutex mtx;
int main() {
std::lock_guard<std::recursive_mutex> lck(mtx);
printf("Works just fine!\n");
return 0;
}