create dummy cpp build job
Some checks failed
Gitea Actions Demo / build (push) Failing after 0s
Gitea Actions Demo / execute (push) Failing after 0s

This commit is contained in:
2026-02-18 23:06:29 -06:00
parent 6d8191b3e8
commit 16761a520b
2 changed files with 38 additions and 11 deletions

View File

@@ -4,17 +4,35 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] on: [push]
jobs: jobs:
Explore-Gitea-Actions: build:
runs-on: debian12 runs-on: debian12
container:
image: cpp-builder-a
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - name: clone
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" uses: actions/checkout@v3
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code - name: build
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: | run: |
ls ${{ gitea.workspace }} g++ -o app main.cpp
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: upload
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: app
execute:
runs-on: debian12
container:
image: cpp-builder-a
steps:
- name: download
uses: actions/download-artifact@v3
with:
name: build-artifact
- name: execute
run: |
chmod +x app
./app

9
main.cpp Normal file
View File

@@ -0,0 +1,9 @@
#include <iostream>
int main() {
std::cout << "Hello homeburger gitea ci/cd !! :3" << std::endl;
return 0;
}