45 lines
922 B
YAML
45 lines
922 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: container-setup
|
|
run: echo "test
|
|
|
|
- name: build
|
|
run: 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: container-setup
|
|
run: echo test"
|
|
- name: download
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: build-artifact
|
|
|
|
- name: make-executable
|
|
run: chmod +x app
|
|
|
|
- name: execute
|
|
run: ./app
|