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 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/build/ActionsTesting.exe - name: Prepare artifacts run: | echo "Current working directory: $PWD" Get-ChildItem -Path artifacts -Recurse | Remove-Item -force -recurse if (Test-Path -Path .\artifacts) { Remove-Item -Path .\artifacts -Recurse -Force } $version = (Select-String -Path "build.gradle" -Pattern "^\s*version\s*'([^']+)'" | ForEach-Object { $_.Matches[0].Groups[1].Value }) echo Version: $version New-Item -Path "artifacts" -ItemType Directory Copy-Item -Path "./src/build/ActionsTesting.exe" -Destination "./artifacts/ActionsTesting-$version.exe" -Verbose # ISCC.exe /? - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: artifacts path: artifacts\*