Skip to content

Commit 9692afc

Browse files
committed
fix ci
1 parent 7c9d7de commit 9692afc

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/cpp_full_node_workflow.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,20 @@ jobs:
6969
export CXX='g++-10'
7070
sudo bash -x cpp/tools/install_depends.sh -o ubuntu
7171
mkdir -p cpp/build && cd cpp/build && cmake -DBUILD_STATIC=ON -DTESTS=ON -DCOVERAGE=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../
72+
df -lh
73+
du -sch ${{ env.VCPKG_ROOT }}/buildtrees/*
74+
du -sch ${{ env.VCPKG_ROOT }}/buildtrees/grpc/src/*
75+
rm -rf ${{ env.VCPKG_ROOT }}/buildtrees/grpc/src
76+
rm -rf ${{ env.VCPKG_ROOT }}/buildtrees/grpc/*-dbg
77+
rm -rf ${{ env.VCPKG_ROOT }}buildtrees/openssl/src
78+
rm -rf ${{ env.VCPKG_ROOT }}/buildtrees/openssl/*-dbg
79+
rm -rf ${{ env.VCPKG_ROOT }}/buildtrees/*/*-dbg
80+
df -lh
7281
make -j3
7382
- name: Build for macOS
7483
if: runner.os == 'macOS'
7584
run: |
7685
bash -x cpp/tools/install_depends.sh -o macos
77-
rm -rf /Users/runner/work/WeDPR-Component/WeDPR-Component/vcpkg/buildtrees/gsasl
7886
mkdir -p cpp/build && cd cpp/build && cmake -DBUILD_STATIC=ON -DTESTS=ON -DCOVERAGE=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../
7987
make -j3
8088
- name: Publish Error
@@ -108,7 +116,13 @@ jobs:
108116
with:
109117
name: build-x64-linux-dbg-err.log
110118
path: /home/runner/work/WeDPR-Component/WeDPR-Component/vcpkg/buildtrees/gsasl/build-x64-linux-dbg-err.log
111-
119+
- name: Publish Error macos
120+
if: always()
121+
uses: actions/upload-artifact@v4
122+
with:
123+
name: autoconf-x64-osx-err.log
124+
path: /Users/runner/work/WeDPR-Component/WeDPR-Component/vcpkg/buildtrees/gsasl/autoconf-x64-osx-err.log
125+
112126

113127
build_centos:
114128
name: build_centos full node
@@ -165,10 +179,6 @@ jobs:
165179
with:
166180
toolchain: nightly-2022-07-28
167181
override: true
168-
- name: Prepare vcpkg
169-
if: runner.os != 'Windows'
170-
uses: friendlyanon/setup-vcpkg@v1
171-
with: { committish: 51b14cd4e1230dd51c11ffeff6f7d53c61cc5297 }
172182
- name: Check disk space
173183
run: df . -h
174184
- name: Free disk space
@@ -190,7 +200,7 @@ jobs:
190200
rm -rf python
191201
mkdir -p cpp/build
192202
cd cpp/build
193-
cmake3 -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DTESTS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake ../
203+
cmake3 -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DTESTS=ON ../
194204
- name: FreeDiskSpace
195205
run: |
196206
df -lh

cpp/tools/install_depends.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ install_iconv_depend()
125125
install_macos_depends()
126126
{
127127
LOG_INFO "install depends for macos ..."
128-
brew install autoconf nasm lcov
128+
brew install autoconf nasm lcov automake
129129
#install_gsasl_depend "macos"
130130
#install_iconv_depend
131131
LOG_INFO "install depends for macos success ..."

0 commit comments

Comments
 (0)