35 lines
749 B
YAML
35 lines
749 B
YAML
name: Build Packages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
tags:
|
|
- '**'
|
|
|
|
jobs:
|
|
build-library:
|
|
name: Build
|
|
runs-on: durin
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build library
|
|
shell: bash
|
|
run: |
|
|
mkdir -p build
|
|
cd build
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
make -j
|
|
|
|
- name: Upload release assets to Gitea
|
|
if: github.ref_type == 'tag'
|
|
shell: bash
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.PIP_REPOSITORY_API_TOKEN }}
|
|
run: |
|
|
set -euo pipefail
|
|
python tools/gitea_release_upload.py \
|
|
"${{ github.server_url }}" \
|
|
"${{ github.repository }}" \
|
|
"${{ github.ref_name }}" |