Files
sandbox/.gitea/workflows/demo.yaml
Blitblank db3d5fe286
All checks were successful
Gitea Actions Demo / build (push) Successful in 3s
Gitea Actions Demo / execute (push) Successful in 2s
clean it up
2026-02-22 00:00:29 -06:00

48 lines
1.0 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
build:
runs-on: debian12
container:
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
steps:
- name: clone
uses: actions/checkout@v3
- name: build
run: |
echo "building..."
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
cat /etc/hosts
curl git.vxbard.net || true
g++ -o app main.cpp
- name: upload
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: app
execute:
runs-on: debian12
container:
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
needs: build
steps:
- name: dummy
run: |
echo "10.145.164.106 git.vxbard.net" >> /etc/hosts
- name: download
uses: actions/download-artifact@v3
with:
name: build-artifact
- name: execute
run: |
chmod +x app
./app