Skip to content

fix chain params settings #146

fix chain params settings

fix chain params settings #146

Workflow file for this run

name: 'build ghost-core (x86_64-linux-gnu)'
on: [push]
jobs:
build-ubuntu:
runs-on: ubuntu-20.04
strategy:
matrix:
os: [x86_64-linux-gnu]
steps:
- uses: actions/checkout@v2
- name: Cache apt depencenies
uses: actions/cache@v2
id: cache-apt
with:
path: "~/apt-cache"
key: apt-cache
- name: Cache depends
id: cache-dependencies
uses: actions/cache@v2
with:
path: depends/${{ matrix.os }}
key: ${{ matrix.os }}-${{ hashFiles('depends/packages/*.mk') }}
- name: Install dependencies
env:
CACHE_HIT: ${{steps.cache-apt.outputs.cache-hit}}
DEPS: build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools
run: |
if [[ "$CACHE_HIT" == 'true' ]]; then
sudo cp --force --recursive ~/apt-cache/* /
else
sudo apt-get update && sudo apt-get install -yq $DEPS
mkdir -p ~/apt-cache
for dep in $DEPS; do
dpkg -L $dep | while IFS= read -r f; do if test -f $f; then echo $f; fi; done | xargs cp --parents --target-directory ~/apt-cache/
done
fi
- name: Build depends
if: steps.cache-dependencies.outputs.cache-hit != 'true' && steps.cache-apt.outputs.cache-hit != 'true'
run: cd depends/ && make -j4 HOST=${{matrix.os}} NO_USB=1
- name: Refresh automake configs
run: ./autogen.sh
- name: Configure automake
run: ./configure --prefix=`pwd`/depends/${{ matrix.os }} --with-gui=qt5
- name: Build codebase
run: make -j4
- name: Unittests
run: make check
build-macos:
runs-on: macOS-11
env:
CCACHE_TEMPDIR: /tmp/.ccache-temp
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: /Users/runner/Library/Caches/ccache
key: ccache-${{ runner.os }}-build-${{ github.sha }}
restore-keys: ccache-${{ runner.os }}-build-
- name: Xcode Select
# You may pin to the exact commit or the version.
# uses: devbotsxyz/xcode-select@05f94658217eb8575f0aabd3b95e702a47995d21
uses: devbotsxyz/[email protected]
with:
# Version to use (like '11.7', '12' or simply 'latest')
version: 12.4
- name: Set Openssl to 1.1
run: echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/runner/.bash_profile && openssl version
- name: install dependencies
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install automake libtool boost miniupnpc pkg-config python qt libevent qrencode protobuf hidapi librsvg sqlite berkeley-db@4
- name: Refresh automake configs
run: ./autogen.sh
- name: Configure automake
run: ./configure --prefix=`pwd`/depends/${{ runner.os }} --with-gui=auto LDFLAGS="-L/usr/local/opt/[email protected]/lib" CPPFLAGS="-I/usr/local/opt/[email protected]/include"
- name: Build codebase
run: make -j4
- name: Unittests
run: make check