From 1a7e667283d84c714feeeb48b00aa88710124e67 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Mon, 6 Jan 2025 16:09:45 -0800 Subject: [PATCH] ci: Lock MacOS to 14 --- .github/workflows/macos.yaml | 42 +++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 95561ec57393..c86d5a1cf5c5 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -5,7 +5,7 @@ on: jobs: smoke-test: name: Smoke Test macOS - runs-on: macos-latest + runs-on: macos-14 timeout-minutes: 120 strategy: fail-fast: true @@ -15,29 +15,19 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Download Bitcoin ${{ matrix.bitcoind-version }} & install binaries - run: | - export BITCOIND_VERSION=${{ matrix.bitcoind-version }} - export TARGET_ARCH="arm64-apple-darwin" - - wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIND_VERSION}/bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz - tar -xzf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz - sudo mv bitcoin-${BITCOIND_VERSION}/bin/* /usr/local/bin - rm -rf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz bitcoin-${BITCOIND_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 python@3.10 gnu-sed gettext libsodium protobuf + export PATH="/usr/local/opt:/Users/runner/.local/bin:/opt/homebrew/bin/python3.10/bin:$PATH" + brew install gnu-sed python@3.10 autoconf automake libtool protobuf + brew list | grep gnu-sed + brew --prefix gnu-sed - python3.10 -m pip install -U --user poetry wheel pip + python3.10 -m pip install -U --user poetry==1.8.0 wheel pip mako + python3.10 --version + python3.10 -m poetry --version 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 and install + - name: Build and install CLN run: | export CPATH=/opt/homebrew/include export LIBRARY_PATH=/opt/homebrew/lib @@ -45,7 +35,15 @@ jobs: python3.10 -m poetry run ./configure --disable-valgrind --disable-compat python3.10 -m poetry run make - # sudo PATH="/usr/local/opt:$PATH" LIBRARY_PATH=/opt/homebrew/lib CPATH=/opt/homebrew/include make install + - name: Download Bitcoin ${{ matrix.bitcoind-version }} & install binaries + run: | + export BITCOIND_VERSION=${{ matrix.bitcoind-version }} + export TARGET_ARCH="arm64-apple-darwin" + + wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIND_VERSION}/bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz + tar -xzf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz + sudo mv bitcoin-${BITCOIND_VERSION}/bin/* /usr/local/bin + rm -rf bitcoin-${BITCOIND_VERSION}-${TARGET_ARCH}.tar.gz bitcoin-${BITCOIND_VERSION} - name: Start bitcoind in regtest mode run: | @@ -58,11 +56,11 @@ jobs: bitcoin-cli -regtest generatetoaddress 1 $(bitcoin-cli -regtest getnewaddress) sleep 2 - - name: Start lightningd in regtest mode + - name: Start CLN in regtest mode run: | lightningd/lightningd --network=regtest --log-file=/tmp/l1.log --daemon sleep 5 - - name: Verify lightningd is running + - name: Verify CLN is running run: | cli/lightning-cli --regtest getinfo