CI: fixed paths and file names

This commit is contained in:
SChernykh 2023-08-26 20:20:14 +02:00
parent 0e0101f507
commit d8b23cd13c
2 changed files with 12 additions and 14 deletions

View file

@ -36,12 +36,11 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
submodules: true submodules: true
path: p2pool
- name: Build libcurl - name: Build libcurl
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
cd p2pool/external/src/curl cd external/src/curl
cmake . -DCMAKE_C_FLAGS="-Os ${{ matrix.config.flags }}" -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF cmake . -DCMAKE_C_FLAGS="-Os ${{ matrix.config.flags }}" -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_ZLIB=OFF -DCURL_DISABLE_ALTSVC=ON -DCURL_DISABLE_COOKIES=ON -DCURL_DISABLE_DOH=ON -DCURL_DISABLE_GETOPTIONS=ON -DCURL_DISABLE_HSTS=ON -DCURL_DISABLE_LIBCURL_OPTION=ON -DCURL_DISABLE_MIME=ON -DCURL_DISABLE_NETRC=ON -DCURL_DISABLE_NTLM=ON -DCURL_DISABLE_PARSEDATE=ON -DCURL_DISABLE_PROGRESS_METER=ON -DCURL_DISABLE_SHUFFLE_DNS=ON -DCURL_DISABLE_SOCKETPAIR=ON -DCURL_DISABLE_VERBOSE_STRINGS=ON -DHTTP_ONLY=ON -DCURL_ENABLE_SSL=OFF -DUSE_LIBIDN2=OFF -DCURL_USE_LIBPSL=OFF -DCURL_USE_LIBSSH2=OFF -DENABLE_UNIX_SOCKETS=OFF
make -j$(nproc) make -j$(nproc)
cd lib && mkdir .libs && cp libcurl.a .libs cd lib && mkdir .libs && cp libcurl.a .libs
@ -49,7 +48,7 @@ jobs:
- name: Build libuv - name: Build libuv
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
cd p2pool/external/src/libuv cd external/src/libuv
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DBUILD_TESTING=OFF -DLIBUV_BUILD_SHARED=OFF cmake .. -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DBUILD_TESTING=OFF -DLIBUV_BUILD_SHARED=OFF
@ -58,7 +57,7 @@ jobs:
- name: Build libzmq - name: Build libzmq
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
cd p2pool/external/src/libzmq cd external/src/libzmq
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='-Os ${{ matrix.config.flags }}' -DWITH_LIBSODIUM=OFF -DWITH_LIBBSD=OFF -DBUILD_TESTS=OFF -DWITH_DOCS=OFF -DENABLE_DRAFTS=OFF -DBUILD_SHARED=OFF cmake .. -DCMAKE_C_FLAGS='-Os ${{ matrix.config.flags }}' -DCMAKE_CXX_FLAGS='-Os ${{ matrix.config.flags }}' -DWITH_LIBSODIUM=OFF -DWITH_LIBBSD=OFF -DBUILD_TESTS=OFF -DWITH_DOCS=OFF -DENABLE_DRAFTS=OFF -DBUILD_SHARED=OFF
@ -67,7 +66,6 @@ jobs:
- name: Build p2pool - name: Build p2pool
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
cd p2pool
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_BINARY=ON cmake .. -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_BINARY=ON
@ -76,13 +74,13 @@ jobs:
- name: Run RandomX tests - name: Run RandomX tests
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
p2pool/build/p2pool --test build/p2pool --test
p2pool/build/external/src/RandomX/randomx-tests build/external/src/RandomX/randomx-tests
- name: Build tests - name: Build tests
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
cd p2pool/tests cd tests
mkdir build mkdir build
cd build cd build
cmake .. -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON cmake .. -DCMAKE_C_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DCMAKE_CXX_FLAGS='${{ matrix.config.flags }} -Wl,-s -Wl,--gc-sections' -DSTATIC_LIBS=ON
@ -91,13 +89,13 @@ jobs:
- name: Run tests - name: Run tests
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
cd p2pool/tests/build cd tests/build
gunzip *.gz gunzip *.gz
./p2pool_tests ./p2pool_tests
- name: List directory - name: List directory
run: | run: |
cd p2pool/build cd build
ls -la ls -la
file p2pool file p2pool
@ -105,7 +103,7 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: p2pool-alpine-static-${{ matrix.config.arch }} name: p2pool-alpine-static-${{ matrix.config.arch }}
path: p2pool/build/p2pool path: build/p2pool
build-ubuntu: build-ubuntu:

View file

@ -15,10 +15,10 @@ jobs:
- name: Compress source code - name: Compress source code
run: | run: |
mkdir build mkdir build
XZ_OPT=-e9 tar --exclude=".git" --exclude="build" -f build/p2pool.tar.xz -c ../p2pool --xz XZ_OPT=-e9 tar --exclude=".git" --exclude="build" -f build/p2pool_source.tar.xz -c ../p2pool --xz
- name: Archive source code - name: Archive source code
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: p2pool.tar.xz name: p2pool_source.tar.xz
path: build/p2pool.tar.xz path: build/p2pool_source.tar.xz