Skip to content

Fix building

Fix building #459

Workflow file for this run

---
name: CI MacOS
on: [push, pull_request]
jobs:
testmacos:
name: Build
runs-on: macos-latest
timeout-minutes: 120
strategy:
fail-fast: true
matrix:
groestlcoind-version: ["27.0"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Groestlcoin ${{ matrix.groestlcoind-version }} & install binaries
run: |
export GROESTLCOIND_VERSION=${{ matrix.groestlcoind-version }}
export TARGET_ARCH="arm64-apple-darwin"
wget https://github.com/Groestlcoin/groestlcoin/releases/download/v${GROESTLCOIND_VERSION}/groestlcoin-${GROESTLCOIND_VERSION}-${TARGET_ARCH}.tar.gz
tar -xzf groestlcoin-${GROESTLCOIND_VERSION}-${TARGET_ARCH}.tar.gz
sudo mv groestlcoin-${GROESTLCOIND_VERSION}/bin/* /usr/local/bin
rm -rf groestlcoin-${GROESTLCOIND_VERSION}-${TARGET_ARCH}.tar.gz groestlcoin-${GROESTLCOIND_VERSION}
- name: Install dependencies
run: |
export PATH="/usr/local/opt:/Users/runner/.local/bin:/Users/runner/Library/Python/3.10/bin:$PATH"
brew install wget autoconf automake libtool [email protected] gnu-sed gettext libsodium protobuf
python3.10 -m pip install -U --user poetry==1.8.3 wheel pip
python3.10 -m poetry install
python3.10 -m pip install -U --user mako
sudo ln -s /usr/local/Cellar/gettext/0.20.1/bin/xgettext /usr/local/opt
- name: Build
run: |
export CPATH=/opt/homebrew/include
export LIBRARY_PATH=/opt/homebrew/lib
export CFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-builtin-requires-header"
export CXXFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-builtin-requires-header"
python3.10 -m poetry run ./configure --disable-valgrind --disable-compat
python3.10 -m poetry run make
#sudo python3.10 -m poetry run make install
sudo PATH="/usr/local/opt:$PATH" LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include make install
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: clightning-${{ github.sha }}-macos
path: |
/usr/local/bin/lightningd
/usr/local/bin/lightning-cli
/usr/local/bin/lightning-hsmtool
/usr/local/libexec/c-lightning
/usr/local/share/man/man1
/usr/local/share/man/man5
/usr/local/share/man/man7
/usr/local/share/man/man8
/usr/local/share/doc/c-lightning
if-no-files-found: error
retention-days: 7
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: clightning-${{ github.sha }}-macos