Migrate CI workflow to Gitea Actions

This commit is contained in:
t1amak
2026-03-18 23:57:53 +01:00
parent 84b1a2177b
commit a81d74b8cb
2 changed files with 63 additions and 127 deletions

View File

@@ -0,0 +1,63 @@
name: build
on:
push:
paths-ignore:
- "docs/**"
- "**/README.md"
pull_request:
paths-ignore:
- "docs/**"
- "**/README.md"
jobs:
linux-x86_64:
name: Linux x86_64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
automake \
autotools-dev \
build-essential \
ca-certificates \
cmake \
curl \
git \
gperf \
libdbus-1-dev \
libharfbuzz-dev \
libssl-dev \
libtool \
pkg-config \
python3-zmq \
zip
- name: Build
run: |
make depends target=x86_64-linux-gnu -j"$(nproc)"
- name: Package release archive
run: |
REF_NAME="${GITHUB_REF_NAME:-$(git rev-parse --short=9 HEAD)}"
ARCHIVE="/tmp/peya-${REF_NAME}-linux-x86_64.zip"
cd build/x86_64-linux-gnu/release/bin
zip -ur "${ARCHIVE}" peyad peya-wallet-cli peya-wallet-rpc peya-gen-multisig
ls -lh "${ARCHIVE}"
- name: Upload build artifact
uses: https://github.com/actions/upload-artifact@v4
with:
name: peya-linux-x86_64
path: /tmp/peya-*-linux-x86_64.zip
if-no-files-found: error