Fixed cmake i hope
This commit is contained in:
parent
aa8fd464f3
commit
34d41b49a9
@ -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
|
||||
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
src/build/
|
Loading…
Reference in New Issue
Block a user