1
0
test3/.gitea/workflows/test1.yaml
2025-05-24 21:30:00 +03:00

95 lines
2.2 KiB
YAML

name: Build
run-name: build
on: [push]
jobs:
build-debian:
runs-on: debian-prepared
steps:
- name: Clone repository
run: |
git init
git remote add gitea http://10.1.1.1:3000/hasslesstech/test3
git fetch
git checkout master
- name: Build funtions
run: gcc -c f.c
- name: Build core
run: gcc -c core.c
- name: Link program
run: gcc f.o core.o -o core
- name: Test program
run: |
chmod u+x ./test.sh
./test.sh
build-arch:
runs-on: arch-prepared
steps:
- name: Clone repository
run: |
git init
git remote add gitea http://10.1.1.1:3000/hasslesstech/test3
git fetch
git checkout master
- name: Build funtions
run: gcc -c f.c
- name: Build core
run: gcc -c core.c
- name: Link program
run: gcc f.o core.o -o core
- name: Test program
run: |
chmod u+x ./test.sh
./test.sh
build-void:
runs-on: void-prepared
steps:
- name: Clone repository
shell: sh
run: |
git init
git remote add gitea http://10.1.1.1:3000/hasslesstech/test3
git fetch
git checkout master
- name: Build funtions
shell: sh
run: gcc -c f.c
- name: Build core
shell: sh
run: gcc -c core.c
- name: Link program
shell: sh
run: gcc f.o core.o -o core
- name: Test program
shell: sh
run: |
chmod u+x ./test.sh
./test.sh
build-alpine:
runs-on: alpine-prepared
steps:
- name: Clone repository
shell: sh
run: |
git init
git remote add gitea http://10.1.1.1:3000/hasslesstech/test3
git fetch
git checkout master
- name: Build funtions
shell: sh
run: gcc -c f.c
- name: Build core
shell: sh
run: gcc -c core.c
- name: Link program
shell: sh
run: gcc f.o core.o -o core
- name: Test program
shell: sh
run: |
chmod u+x ./test.sh
./test.sh