Fixed cmake i hope
This commit is contained in:
parent
aa8fd464f3
commit
34d41b49a9
@ -26,12 +26,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cp dirOne/file.txt dirTwo/
|
cp dirOne/file.txt dirTwo/
|
||||||
- name: CMake Test
|
- name: CMake Test
|
||||||
uses: actions/cmake-action@v2.0.0
|
#uses: actions/cmake-action@v2.0.0
|
||||||
with:
|
#with:
|
||||||
source-dir: src/
|
# source-dir: src/
|
||||||
output-dir: src/out
|
# 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
|
- name: Run built exe
|
||||||
run: ./src/out/ActionsTesting.exe
|
run: ./src/build/ActionsTesting.exe
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
@ -40,7 +43,7 @@ jobs:
|
|||||||
Remove-Item .\artifacts\ -Force
|
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 })
|
$version = (Select-String -Path "build.gradle" -Pattern "version" | Where-Object { $_ -notmatch "id" -and $_ -notmatch ":" } | ForEach-Object { [regex]::Match($_, "'(.*?)'").Groups[1].Value })
|
||||||
Write-Output $version
|
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 /?
|
ISCC.exe /?
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
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