update bcos-utilities #400
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bcos-boostssl GitHub Actions | |
on: | |
push: | |
paths-ignore: | |
- "docs/**" | |
- "Changelog.md" | |
- "README.md" | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "Changelog.md" | |
- "README.md" | |
release: | |
types: [published, created, edited] | |
env: | |
CCACHE_DIR: ${{ github.workspace }}/ccache | |
jobs: | |
build_with_clang: | |
name: build_with_clang | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: Nightly default | |
run: rustup default nightly | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
/home/runner/.hunter | |
/Users/runner/.hunter/ | |
ccache | |
key: hunter-clang-v3-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
restore-keys: | | |
hunter-clang-v3-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
hunter-clang-v3-notest-${{ runner.temp }}-${{ github.base_ref }}- | |
hunter-clang-v3-notest-${{ runner.temp }}- | |
- name: install macOS dependencies | |
if: runner.os == 'macOS' | |
run: brew install ccache | |
- name: install Ubuntu dependencies | |
if: runner.os == 'Linux' | |
run: sudo apt install -y git curl openssl build-essential clang cmake ccache | |
- name: configure | |
if: runner.os == 'macOS' | |
run: export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) && CC=/usr/bin/clang CXX=/usr/bin/clang++ mkdir build && cd build && cmake ../ -DTESTS=ON | |
- name: configure | |
if: runner.os == 'Linux' | |
run: CC=/usr/bin/clang CXX=/usr/bin/clang++ mkdir build && cd build && cmake ../ | |
- name: compile | |
run: cd build && make -j2 | |
# - name: run test | |
# run: CTEST_OUTPUT_ON_FAILURE=TRUE make test | |
build_with_gcc: | |
name: build_with_gcc | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: /home/runner/.hunter | |
key: hunter-gcc-v2-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
restore-keys: | | |
hunter-gcc-v2-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
hunter-gcc-v2-notest-${{ runner.temp }}-${{ github.base_ref }}- | |
hunter-gcc-v2-notest-${{ runner.temp }}- | |
- uses: actions/cache@v2 | |
id: ccache | |
with: | |
path: ccache | |
key: cache-gcc-v2-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
restore-keys: | | |
ccache-gcc-v2-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
cache-gcc-v2-notest-${{ runner.temp }}-${{ github.base_ref }}- | |
cache-gcc-v2-notest-${{ runner.temp }}- | |
- name: install Ubuntu dependencies | |
run: sudo apt install -y git curl openssl build-essential cmake ccache | |
- name: configure | |
run: mkdir -p build && cd build && cmake ../ | |
- name: compile | |
run: cd build && make -j4 | |
# - name: run test | |
# run: CTEST_OUTPUT_ON_FAILURE=TRUE make test | |
build_with_centos: | |
name: build_with_centos | |
runs-on: ubuntu-latest | |
container: | |
image: docker.io/centos:7 | |
volumes: | |
- /github/home/.hunter:/github/home/.hunter | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 5 | |
- name: install rust language | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2021-06-17 | |
override: true | |
- uses: actions/cache@v2 | |
id: cache | |
with: | |
path: | | |
/home/runner/.hunter | |
/github/home/.hunter | |
/home/runner/.hunter/_Base/Download/ | |
/github/home/.hunter/_Base/Download/ | |
deps/src | |
ccache | |
key: hunter-centos-v2-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
restore-keys: | | |
hunter-centos-v2-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | |
hunter-centos-v2-notest-${{ runner.temp }}-${{ github.base_ref }}- | |
hunter-centos-v2-notest-${{ runner.temp }}- | |
- name: install CentOS dependencies | |
run: | | |
yum install -y epel-release centos-release-scl | |
yum install -y make gcc gcc-c++ glibc-static glibc-devel openssl cmake3 ccache devtoolset-7 libzstd-devel zlib-devel flex bison python-devel python3-devel && source /opt/rh/devtoolset-7/enable | |
yum reinstall -y -q https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm | |
yum install -y -q git | |
- name: configure | |
run: | | |
source /opt/rh/devtoolset-7/enable | |
mkdir -p build && cd build | |
cmake3 ../ -DHUNTER_STATUS_DEBUG=ON | |
- name: compile | |
run: | | |
source /opt/rh/devtoolset-7/enable | |
mkdir -p build && cd build | |
make -j4 |