commit 318423354a1a342965cfa09c191ef0ff6e6b975e Author: Steven Tracey Date: Thu Oct 24 15:39:16 2024 -0400 Push! diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..db907f5 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,43 @@ +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' + 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 withArgs + - 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: Prepare artifacts + run: | + 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\* diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..5f4ff6b --- /dev/null +++ b/build.gradle @@ -0,0 +1,10 @@ +plugins { + id 'java' +} + +group 'tech.nevets' +version '4.2.0' + +repositories { + mavenCentral() +} \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..1f54f2b --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.10) +project(ActionsTesting) + +set(CMAKE_C_STANDARD 99) +set(CMAKE_CXX_STANDARD 11) + +add_executable(ActionsTesting main.c) \ No newline at end of file diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..62c4fe8 --- /dev/null +++ b/src/main.c @@ -0,0 +1,6 @@ +#include + +int main() { + printf("Hello, World!"); + return 0; +} \ No newline at end of file