diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 66b1603..dfecea4 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -26,12 +26,15 @@ jobs: run: | cp dirOne/file.txt dirTwo/ - name: CMake Test - uses: actions/cmake-action@v2.0.0 - with: - source-dir: src/ - output-dir: src/out + #uses: actions/cmake-action@v2.0.0 + #with: + # source-dir: src/ + # output-dir: src/out + run: | + cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" -S ./src -B ./src/build + cmake --build ./src/build --target ActionsTesting -- -j 14 - name: Run built exe - run: ./src/out/ActionsTesting.exe + run: ./src/build/ActionsTesting.exe - name: Prepare artifacts run: | pwd @@ -40,7 +43,7 @@ jobs: Remove-Item .\artifacts\ -Force $version = (Select-String -Path "build.gradle" -Pattern "version" | Where-Object { $_ -notmatch "id" -and $_ -notmatch ":" } | ForEach-Object { [regex]::Match($_, "'(.*?)'").Groups[1].Value }) Write-Output $version - Copy-Item -Path "./src/out/ActionsTesting.exe" -Destination "./artifacts/ActionsTesting-$version.exe" -Verbose + Copy-Item -Path "./src/build/ActionsTesting.exe" -Destination "./artifacts/ActionsTesting-$version.exe" -Verbose ISCC.exe /? - name: Upload artifacts uses: actions/upload-artifact@v3 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..743e213 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +src/build/ \ No newline at end of file