Files

71 lines
2.1 KiB
YAML

---
name: Mac OS pytest
on:
pull_request:
jobs:
smoke-test:
name: Smoke Test macOS
runs-on: macos-14
timeout-minutes: 120
strategy:
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Palladium & install binaries
run: |
wget https://github.com/palladium-coin/palladiumcore/releases/latest/download/palladium-arm64-apple-darwin.tar.gz
tar -xzf palladium-arm64-apple-darwin.tar.gz
cd arm64-apple-darwin
sudo mv palladium* /usr/local/bin
cd ..
rm -rf arm64-apple-darwin palladium-arm64-apple-darwin.tar.gz
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
export PATH="/usr/local/opt:/Users/runner/.local/bin:/opt/homebrew/bin/python3.10/bin:$PATH"
brew install gnu-sed autoconf automake libtool protobuf openssl lowdown libsodium
# https://github.com/grpc/grpc/issues/31737#issuecomment-1323796842
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
uv sync --all-groups
- name: Build and install CLN
run: |
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
uv run ./configure --disable-valgrind --disable-compat
uv run make
- name: Start palladiumd in regtest mode
run: |
palladiumd -regtest -daemon
sleep 5
- name: Generate initial block
run: |
palladium-cli -regtest createwallet default_wallet
palladium-cli -regtest generatetoaddress 1 $(palladium-cli -regtest getnewaddress)
sleep 2
- name: Start CLN in regtest mode
run: |
lightningd/lightningd --network=regtest --log-file=/tmp/l1.log --daemon
sleep 5
- name: Verify CLN is running
run: |
cli/lightning-cli --regtest getinfo