64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
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
|