96 lines
2.3 KiB
YAML
96 lines
2.3 KiB
YAML
name: Build
|
|
run-name: build
|
|
on: [push]
|
|
|
|
jobs:
|
|
build-debian:
|
|
runs-on: debian
|
|
steps:
|
|
- name: Install tools
|
|
run: |
|
|
apt update
|
|
apt install -y git gcc
|
|
- 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
|
|
|
|
build-arch:
|
|
runs-on: arch
|
|
steps:
|
|
- name: Install tools
|
|
run: |
|
|
pacman -Sy --noconfirm git gcc
|
|
- 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
|
|
|
|
build-void:
|
|
runs-on: void
|
|
steps:
|
|
- name: Install tools
|
|
shell: sh
|
|
run: |
|
|
echo 'repository=https://repo-default.voidlinux.org/current' > /etc/xbps.d/00-repository-main.conf
|
|
xbps-install -S
|
|
xbps-install -yu xbps
|
|
xbps-install -yu
|
|
xbps-install -y git gcc
|
|
- 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
|
|
|
|
build-alpine:
|
|
runs-on: alpine
|
|
steps:
|
|
- name: Install tools
|
|
shell: sh
|
|
run: |
|
|
apk add git gcc musl-dev
|
|
- 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
|