From 070a7d0614c07ff069865f822a40db8948bdb64f Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Sun, 14 Jun 2026 23:50:53 -0500 Subject: [PATCH] first commit --- .gitea/workflows/work.yml | 49 +++++++++++++++++++++++++++++++++++++++ CMakeLists.txt | 5 ++++ myapp.c | 7 ++++++ 3 files changed, 61 insertions(+) create mode 100644 .gitea/workflows/work.yml create mode 100644 CMakeLists.txt create mode 100644 myapp.c diff --git a/.gitea/workflows/work.yml b/.gitea/workflows/work.yml new file mode 100644 index 0000000..b0f180e --- /dev/null +++ b/.gitea/workflows/work.yml @@ -0,0 +1,49 @@ +name: Build and Deploy on Tag +on: + push: + tags: + - "v*" + +jobs: + build: + # The 'container' tag replaces the runner OS; the job runs INSIDE this image + strategy: + fail-fast: true + matrix: + include: + # x86_64 + - arch: x64 + image: dockcross/linux-x64 + tripple: x86_64-linux-gnu + + # ARM 64-bit + - arch: arm64 + image: dockcross/linux-arm64 + tripple: aarch64-linux-gnu + + # Apply the matrix image to the job container + runs-on: ubuntu-latest + container: + image: ${{ matrix.image }} + + + steps: + - uses: actions/setup-node@v6 + with: + node-version: 24 + cache: 'npm' + - uses: actions/checkout@v4 + - run: | + mkdir artifacts + mkdir build + cd build + cmake -S .. -B . -DCMAKE_TOOLCHAIN_FILE=/usr/lib/${{ matrix.tripple }}/Toolchain.cmake + make + mv myapp ../artifacts/myapp-${{ matrix.arch }} + - uses: akkuman/gitea-release-action@v1 + env: + NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 + with: + prerelease: true + files: |- + artifacts/** \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..5be6c73 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.16) + +project(myapp) + +add_executable(myapp myapp.c) \ No newline at end of file diff --git a/myapp.c b/myapp.c new file mode 100644 index 0000000..0faa3e5 --- /dev/null +++ b/myapp.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, char** argv) +{ + printf("Hello, world\n"); + return 0; +} \ No newline at end of file