Compare commits

...

5 Commits

Author SHA1 Message Date
cat
5bcd048bd5 Testing void linux container
All checks were successful
Compile / Compile (push) Successful in 5s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
2026-01-06 21:29:47 +02:00
cat
1cc6aeefd2 Fixing a spelling mistake
All checks were successful
Compile / Compile (push) Successful in 4s
2026-01-06 19:49:34 +02:00
cat
6ed385fb1d Added new feature
Some checks failed
Compile / Compile (push) Failing after 4s
2026-01-06 19:47:42 +02:00
cat
7d8dcd7f1d Added an example program
All checks were successful
Compile / Compile (push) Successful in 5s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
2026-01-06 19:39:20 +02:00
cat
e8312aae1d Added workflow examples 2026-01-06 19:38:08 +02:00
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
name: Compile
run-name: Compiling the software (Void Linux)
on: [push]
jobs:
Compile:
runs-on: ubuntu-latest
container:
image: ghcr.io/void-linux/void-glibc-full:20260101r1
steps:
- name: Install dependencies
run: |
xbps-install -Syu
xbps-install -y gcc git make nodejs
- name: Checkout repository
uses: actions/checkout@v3
- name: Compile software
run: g++ main.cpp -o program
- name: Execute program
run: ./program

View File

@@ -0,0 +1,16 @@
name: Compile
run-name: Compiling the software (Ubuntu)
on: [push]
jobs:
Compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Compile software
run: g++ main.cpp -o program
- name: Execute program
run: ./program

19
.gitea/workflows/demo.yml Normal file
View File

@@ -0,0 +1,19 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
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: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

8
main.cpp Normal file
View File

@@ -0,0 +1,8 @@
#include <iostream>
int main() {
std::cout << "Hello world" << std::endl;
std::cout << "Second thing\n";
return 0;
}