From 34d41b49a963d11fa0d1915a7d8b81c6ee6a50c5 Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Sun, 27 Oct 2024 16:47:44 -0400 Subject: [PATCH] Fixed cmake i hope --- .gitea/workflows/build.yml | 15 +++++++++------ .gitignore | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .gitignore 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