48 lines
1.0 KiB
YAML
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
|