Files
Mike Nolan b739124e22
All checks were successful
Build and Deploy on Tag / build (x64, dockcross/linux-x64, /usr/lib/x86_64-linux-gnu/Toolchain.cmake) (push) Successful in 1m18s
Build and Deploy on Tag / build (arm64, dockcross/linux-arm64, /usr/xcc/aarch64-unknown-linux-gnu/Toolchain.cmake) (push) Successful in 1m40s
Framework 13 eh
2026-06-15 16:17:23 -05:00

51 lines
1.3 KiB
YAML

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
toolchain: /usr/lib/x86_64-linux-gnu/Toolchain.cmake
# ARM 64-bit
- arch: arm64
image: dockcross/linux-arm64
toolchain: /usr/xcc/aarch64-unknown-linux-gnu/Toolchain.cmake
# Apply the matrix image to the job container
runs-on: fw13-ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- run: |
apt-get update
apt-get install -y curl
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt-get install -y nodejs
- uses: actions/checkout@v4
- run: |
mkdir artifacts
mkdir build
cd build
cmake -S .. -B . -DTESSESFRAMEWORK_STATIC=ON -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }}
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/**