Compare commits

..

No commits in common. "main" and "v8" have entirely different histories.
main ... v8

2 changed files with 19 additions and 35 deletions

View file

@ -5,49 +5,28 @@ steps:
- apk add --no-cache g++ libc-dev - apk add --no-cache g++ libc-dev
- mkdir -p build - mkdir -p build
- echo "Building project..." - echo "Building project..."
- g++ -O2 -static -o build/main main.cpp - g++ -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 - name: discord notification
image: appleboy/drone-discord image: appleboy/drone-discord
settings: settings:
webhook_id: 1357683988373704824 webhook_id: 1357683988373704824
webhook_token: webhook_token: wtAZM1Ps4upFV0Z5_HJKzWkJ19-lj0tagEwPofOJN4O3OHuET309RTkKQgakDWVrl0Ml
from_secret: WEBHOOK_TOKEN
message: > message: >
{{#success build.status}} {{#success build.status}}
build {{build.number}} succeeded. Good job. build {{build.number}} succeeded. Good job.
{{else}} {{else}}
build {{build.number}} failed. Fix me please. build {{build.number}} failed. Fix me please.
{{/success}} {{/success}}
when: depends_on:
status: [success, failure] - Build
- name: Confirm-Build - name: Find-Build
image: alpine image: alpine
commands: commands:
- ls -al build - ls -al build
- echo "Build is mint!"
depends_on: depends_on:
- Build - Build
- Test-Debian
- name: Release - name: Release
image: plugins/gitea-release image: plugins/gitea-release
@ -58,7 +37,8 @@ steps:
repo_owner: nyosic repo_owner: nyosic
repo_name: MarioDB repo_name: MarioDB
files: build/main files: build/main
depends_on:
- Confirm-Build
when: when:
event: tag event:
- tag
depends_on:
- Find-Build

View file

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