-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cefb87f
commit 414d049
Showing
4 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,23 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- name: Prepare vcpkg | ||
if: runner.os != 'Windows' | ||
uses: friendlyanon/setup-vcpkg@v1 | ||
with: { committish: 51b14cd4e1230dd51c11ffeff6f7d53c61cc5297 } | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: | | ||
/home/runner/vcpkg | ||
/Users/runner/vcpkg/ | ||
ccache | ||
deps/ | ||
c:/vcpkg | ||
!c:/vcpkg/.git | ||
!c:/vcpkg/buildtrees | ||
!c:/vcpkg/packages | ||
!c:/vcpkg/downloads | ||
key: vcpkg-clang-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | ||
restore-keys: | | ||
vcpkg-clang-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | ||
|
@@ -49,11 +59,12 @@ jobs: | |
run: export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) && CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake . -DTESTS=ON | ||
- name: configure | ||
if: runner.os == 'Linux' | ||
run: CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake . -DTESTS=ON | ||
run: CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake . -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake -DTESTS=ON | ||
- name: compile | ||
run: make -j2 | ||
- name: run test | ||
run: CTEST_OUTPUT_ON_FAILURE=TRUE make test ARGS="--output-on-failure" | ||
|
||
build_with_gcc: | ||
name: build_with_gcc | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -64,10 +75,23 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- name: Prepare vcpkg | ||
if: runner.os != 'Windows' | ||
uses: friendlyanon/setup-vcpkg@v1 | ||
with: { committish: 51b14cd4e1230dd51c11ffeff6f7d53c61cc5297 } | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: /home/runner/vcpkg | ||
path: | | ||
/home/runner/vcpkg | ||
/Users/runner/vcpkg/ | ||
ccache | ||
deps/ | ||
c:/vcpkg | ||
!c:/vcpkg/.git | ||
!c:/vcpkg/buildtrees | ||
!c:/vcpkg/packages | ||
!c:/vcpkg/downloads | ||
key: vcpkg-gcc-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | ||
restore-keys: | | ||
vcpkg-gcc-v1-notest-${{ runner.temp }}-${{ github.base_ref }}-${{ hashFiles('.github/workflows/workflow.yml') }} | ||
|
@@ -85,7 +109,7 @@ jobs: | |
- name: install Ubuntu dependencies | ||
run: sudo apt install -y git curl build-essential cmake ccache lcov | ||
- name: configure | ||
run: cmake . -DTESTS=ON -DCOVERAGE=ON -DDEBUG=on | ||
run: cmake . -DTESTS=ON -DCOVERAGE=ON -DDEBUG=on -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake | ||
- name: compile | ||
run: make -j2 | ||
- name: run test | ||
|
@@ -97,6 +121,7 @@ jobs: | |
with: | ||
file: ./coverage.info | ||
name: bcos-utilities coverage | ||
|
||
build_with_centos: | ||
name: build_with_centos | ||
runs-on: ubuntu-latest | ||
|
@@ -131,14 +156,15 @@ jobs: | |
cmake3 . -DTESTS=ON | ||
make -j2 | ||
CTEST_OUTPUT_ON_FAILURE=TRUE make test ARGS="--output-on-failure" | ||
build_with_windows: | ||
name: build_with_windows | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2019] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 5 | ||
- uses: actions/cache@v2 | ||
|
@@ -163,7 +189,7 @@ jobs: | |
uses: microsoft/[email protected] | ||
- name: configure | ||
if: runner.os == 'Windows' | ||
run: mkdir -p build && cd build && cmake -G "Visual Studio 16 2019" -A x64 ../ | ||
run: mkdir -p build && cd build && cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake ../ | ||
- name: compile | ||
run: | ||
cd build && MSBuild /version && MSBuild bcos-utilities.sln /p:Configuration=Release /p:Platform=x64 |
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
Submodule vcpkg
updated
3512 files
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