Compare commits

..

18 commits
v4 ... main

Author SHA1 Message Date
24a8bdc0eb Final Config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-04-04 20:15:45 +02:00
e80a8bfd9a Final Config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2025-04-04 20:01:40 +02:00
fabcfd913f Final Config 2025-04-04 20:01:08 +02:00
2b80bf5bed Add clang-format 2025-04-04 19:59:17 +02:00
5501128100 Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:54:42 +02:00
7d02b9335f Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:52:44 +02:00
79b16ccc81 Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:48:59 +02:00
6f38776809 Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:39:51 +02:00
d438bb0235 Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:38:13 +02:00
00fbd3edde Add clang-format 2025-04-04 19:36:52 +02:00
991eddcbfe Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:22:17 +02:00
6bf852f010 Add clang-format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 19:20:36 +02:00
34a838be7b The Tester one v3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 17:57:02 +02:00
f472e32711 The Tester one v2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 17:55:21 +02:00
1714a761e4 The Tester one
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-04-04 17:53:04 +02:00
ef3c8ff87c Final Final Test
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/build Pipeline was successful
ci/woodpecker/release/build Pipeline was successful
2025-04-04 17:42:43 +02:00
5dae3bbd7f Final Final Test
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/tag/build Pipeline was successful
ci/woodpecker/release/build Pipeline failed
2025-04-04 17:37:11 +02:00
92e308e552 Final Final Test
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/build Pipeline was successful
ci/woodpecker/release/build Pipeline was successful
2025-04-04 17:26:46 +02:00
3 changed files with 70 additions and 42 deletions

View file

@ -1,32 +0,0 @@
steps:
- name: Build
image: alpine
commands:
- apk add --no-cache g++ libc-dev
- mkdir -p build
- echo "Building project..."
- g++ -o build/main main.cpp
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id: 1357683988373704824
webhook_token: wtAZM1Ps4upFV0Z5_HJKzWkJ19-lj0tagEwPofOJN4O3OHuET309RTkKQgakDWVrl0Ml
message: >
{{#success build.status}}
build {{build.number}} succeeded. Good job.
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}
depends_on:
- Build
- name: Release
image: plugins/gitea-release
settings:
api_key: GITEA_TOKEN
base_url: https://git.xyro.win/nyosic/MarioDB
files: build/main
when:
event:
- tag

View file

@ -0,0 +1,64 @@
steps:
- name: Build
image: alpine
commands:
- apk add --no-cache g++ libc-dev
- mkdir -p build
- echo "Building project..."
- g++ -O2 -static -o build/main main.cpp
- chmod +x build/main
- name: Check Static
image: alpine
commands:
- apk add --no-cache file
- file build/main
- ldd build/main || echo "Static binary - no dynamic dependencies"
depends_on:
- Build
- name: Test-Debian
image: debian:bullseye
commands:
- apt-get update && apt-get install -y ca-certificates
- ./build/main
depends_on:
- Build
- name: discord notification
image: appleboy/drone-discord
settings:
webhook_id: 1357683988373704824
webhook_token:
from_secret: WEBHOOK_TOKEN
message: >
{{#success build.status}}
build {{build.number}} succeeded. Good job.
{{else}}
build {{build.number}} failed. Fix me please.
{{/success}}
when:
status: [success, failure]
- name: Confirm-Build
image: alpine
commands:
- ls -al build
- echo "Build is mint!"
depends_on:
- Build
- Test-Debian
- name: Release
image: plugins/gitea-release
settings:
api_key:
from_secret: FORGEJO_TOKEN
base_url: https://git.xyro.win
repo_owner: nyosic
repo_name: MarioDB
files: build/main
depends_on:
- Confirm-Build
when:
event: tag

View file

@ -4,15 +4,13 @@ using namespace std;
int main() {
int i, n;
float suma;
int f[100], f0, f1;
int f0 = 0, f1 = 1;
float zl;
cout << "N = ";
cin >> n;
f0 = 0;
f1 = 1;
cout << f0 << " " << f1 << " ";
for (i = 2; i <= n; i++) {
suma = f0 + f1;
cout << suma << " ";
@ -21,9 +19,7 @@ int main() {
}
zl = suma / f0;
cout << "\nZlota liczba = " << zl << endl;
system("pause");
return 0;
}