Some checks failed
Actions Testing Workflow / build (push) Failing after 23s
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
name: Actions Testing Workflow
|
|
run-name: Deploy to ${{ inputs.deploy_target }} by ${{ gitea.actor }}
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
#- name: Setup JDK 21
|
|
# uses: actions/setup-java@v4.4.0
|
|
# with:
|
|
# java-version: 21
|
|
# distribution: 'temurin'
|
|
# Above is ommitted as Java is installed on the runner
|
|
- name: Test Java
|
|
run: java --version
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.email "git@nevets.tech"
|
|
git config --global user.name "Gitea Actions"
|
|
git version
|
|
- name: Script test
|
|
run: .\script.bat goofyGoober
|
|
- name: Copy File Test
|
|
run: |
|
|
cp dirOne/file.txt dirTwo/
|
|
- name: CMake Test
|
|
uses: actions/cmake-action@v2.0.0
|
|
with:
|
|
source-dir: src/
|
|
output-dir: src/out
|
|
- name: Run built exe
|
|
run: ./src/out/ActionsTesting.exe
|
|
- name: Prepare artifacts
|
|
run: |
|
|
pwd
|
|
ls
|
|
Get-ChildItem -Path .\artifacts\ -Recurse | Remove-Item -force -recurse
|
|
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
|
|
ISCC.exe /?
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: artifacts
|
|
path: artifacts\*
|