Compare commits

..

2 Commits

Author SHA1 Message Date
cat
497de9e7c3 Added an example program
All checks were successful
Compile / Compile (push) Successful in 5s
2026-01-06 19:38:23 +02:00
cat
e8312aae1d Added workflow examples 2026-01-06 19:38:08 +02:00
2 changed files with 3 additions and 7 deletions

View File

@@ -5,16 +5,12 @@ 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,7 @@
#include <print>
#include <iostream>
int main() {
std::print("Hello World!\n");
std::cout << "Hello world" << std::endl;
return 0;
}