Files
dppbots/.gitea/workflows/build.yml
T
firewire 26c5d83507
Build / Build (push) Failing after 3m1s
Update cicd
2026-09-24 10:41:02 -04:00

68 lines
2.2 KiB
YAML

on: [push, pull_request]
name: Build
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
persist-credentials: true
- name: Checkout lfs
run: |
git lfs install --local
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
git config --local --unset http.${{ github.server_url }}/.extraheader
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
git lfs pull
- name: Apt update
run: sudo apt update
- name: Installing build chain
run: sudo apt-get install pigz cmake ninja-build g++ clang pkg-config libssl-dev
zlib1g-dev libopus-dev -y;
- name: Cache CPM
uses: actions/cache@v5
with:
path: "~/.cache/CPM/"
key: ${{ runner.os }}-CPM
- name: Configure debug
run: CPM_SOURCE_CACHE="~/.cache/CPM/" ./scripts/build_script configure -b debug
- name: Configure release
run: CPM_SOURCE_CACHE="~/.cache/CPM/" ./scripts/build_script configure -b
release
- name: Configure RelWithDeb
run: CPM_SOURCE_CACHE="~/.cache/CPM/" ./scripts/build_script configure -b
relwithdeb
- name: Build debug
run: ./scripts/build_script build -b debug
- name: Build release
run: ./scripts/build_script build -b release
- name: Build Release with debug info
run: ./scripts/build_script build -b relwithdeb
- name: Packaging
run: |-
tar -I 'pigz -9' -cf dppbots-debug-amd64.tar.gz --transform 's,^,dppbots/,' bin/Debug src cmake CMakeLists.txt LICENSE;
tar -I 'pigz -9' -cf dppbots-rel-amd64.tar.gz --transform 's,^,dppbots/,' bin/Release src cmake CMakeLists.txt LICENSE;
tar -I 'pigz -9' -cf dppbots-relwithdeb-amd64.tar.gz --transform 's,^,dppbots/,' bin/Relwithdeb src cmake CMakeLists.txt LICENSE;
- uses: akkuman/gitea-release-action@v1
with:
files: |-
dppbots-debug-amd64.tar.gz
dppbots-rel-amd64.tar.gz
dppbots-relwithdeb-amd64.tar.gz