first commit
Some checks failed
Build and Deploy on Tag / build (arm64, dockcross/linux-arm64, aarch64-linux-gnu) (push) Failing after 50s
Build and Deploy on Tag / build (x64, dockcross/linux-x64, x86_64-linux-gnu) (push) Failing after 22s

This commit is contained in:
2026-06-14 23:50:53 -05:00
parent 533c22ad8f
commit 070a7d0614
3 changed files with 61 additions and 0 deletions

49
.gitea/workflows/work.yml Normal file
View File

@@ -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/**

5
CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(myapp)
add_executable(myapp myapp.c)

7
myapp.c Normal file
View File

@@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char** argv)
{
printf("Hello, world\n");
return 0;
}