@@ -22,6 +22,8 @@ concurrency:
2222env :
2323 RUST_BACKTRACE : 1
2424 ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : true
25+ ACTIONS_RUNNER_FORCED_INTERNAL_NODE_VERSION : node16
26+ ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION : node16
2527
2628jobs :
2729 build :
@@ -99,23 +101,37 @@ jobs:
99101 if : runner.os != 'Windows'
100102 run : |
101103 cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE make test ARGS="--output-on-failure"
104+ - name : Publish Error
105+ if : always()
106+ uses : actions/upload-artifact@v4
107+ with :
108+ name : build-x64-linux-dbg-err.log
109+ path : /home/runner/work/WeDPR-Component/WeDPR-Component/vcpkg/buildtrees/gsasl/build-x64-linux-dbg-err.log
110+
102111
103112 build_centos :
104113 name : build_centos full node
105- runs-on : ${{ matrix.os }}
114+ runs-on : ubuntu-latest
106115 continue-on-error : true
107116 strategy :
108117 fail-fast : false
109118 matrix :
110- os : [ubuntu-latest]
119+ container :
120+ - centos-7.9
111121 container :
112122 image : docker.io/centos:7
113123 volumes :
114124 - /usr/local/share/vcpkg:/usr/local/share/vcpkg
125+ - /node20217:/node20217:rw,rshared
126+ - ${{ matrix.container == 'centos-7.9' && '/node20217:/__e/node20:ro,rshared' || ' ' }}
115127 steps :
116- - uses : actions/checkout@v3
117- with :
118- fetch-depth : 5
128+ - name : install nodejs20glibc2.17
129+ if : ${{ matrix.container == 'centos-7.9' }}
130+ run : |
131+ curl -LO https://unofficial-builds.nodejs.org/download/release/v20.9.0/node-v20.9.0-linux-x64-glibc-217.tar.xz
132+ tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
133+ - name : Check out the repo
134+ uses : actions/checkout@v4
119135 - uses : actions/cache@v3
120136 id : deps_cache
121137 with :
@@ -148,6 +164,10 @@ jobs:
148164 with :
149165 toolchain : nightly-2022-07-28
150166 override : true
167+ - name : Prepare vcpkg
168+ if : runner.os != 'Windows'
169+ uses : friendlyanon/setup-vcpkg@v1
170+ with : { committish: 51b14cd4e1230dd51c11ffeff6f7d53c61cc5297 }
151171 - name : Check disk space
152172 run : df . -h
153173 - name : Free disk space
@@ -169,7 +189,7 @@ jobs:
169189 rm -rf python
170190 mkdir -p cpp/build
171191 cd cpp/build
172- cmake3 -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DTESTS=ON -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake ../
192+ 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 ../
173193 - name : FreeDiskSpace
174194 run : |
175195 df -lh
0 commit comments