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
3 changed files with 27 additions and 8 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

@@ -1,20 +1,16 @@
name: Compile
run-name: Compiling the software
run-name: Compiling the software (Ubuntu)
on: [push]
jobs:
Compile:
runs-on: ubuntu-latest
container:
image: 'ghcr.io/void-linux/void-glibc-full:20260101r1'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- run: uname -a
- name: Compile software
run: g++ -std=c++23 main.cpp -o program
run: g++ main.cpp -o program
- name: Execute program
run: ./program

View File

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