Files
sandbox/.gitea/workflows/demo.yaml
Blitblank 03d8da316f
All checks were successful
Gitea Actions Demo / build (push) Successful in 3s
Gitea Actions Demo / execute (push) Successful in 1s
remove unnecessary commands
2026-02-22 00:59:37 -06:00

46 lines
984 B
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
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