Compare commits
3 Commits
1374128071
...
f92e2e0151
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f92e2e0151 | ||
|
|
cece9ac9a2 | ||
|
|
704f69b5ad |
@@ -75,6 +75,7 @@ jobs:
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
ccache \
|
||||
clang \
|
||||
cmake \
|
||||
curl \
|
||||
git \
|
||||
@@ -90,6 +91,12 @@ jobs:
|
||||
sudo update-alternatives --set ${{ matrix.toolchain.host }}-g++ "$(which ${{ matrix.toolchain.host }}-g++-posix)"
|
||||
sudo update-alternatives --set ${{ matrix.toolchain.host }}-gcc "$(which ${{ matrix.toolchain.host }}-gcc-posix)"
|
||||
|
||||
- name: Prepare FreeBSD clang aliases
|
||||
if: ${{ matrix.toolchain.host == 'x86_64-unknown-freebsd' }}
|
||||
run: |
|
||||
sudo ln -sf "$(which clang)" /usr/local/bin/clang-8
|
||||
sudo ln -sf "$(which clang++)" /usr/local/bin/clang++-8
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
make depends target=${{ matrix.toolchain.host }} -j"$(nproc)"
|
||||
@@ -101,12 +108,27 @@ jobs:
|
||||
ARCHIVE="/tmp/peya-${REF_NAME}-${{ matrix.toolchain.host }}.zip"
|
||||
|
||||
cd "build/${{ matrix.toolchain.host }}/release/bin"
|
||||
zip -ur "${ARCHIVE}" peyad* peya-wallet-cli* peya-wallet-rpc* peya-gen-multisig*
|
||||
FILES=()
|
||||
|
||||
for pattern in peyad* peya-wallet-cli* peya-wallet-rpc* peya-gen-multisig*; do
|
||||
for file in $pattern; do
|
||||
if [ -e "$file" ]; then
|
||||
FILES+=("$file")
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
if [ "${#FILES[@]}" -eq 0 ]; then
|
||||
echo "No release binaries found in $(pwd)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
zip -ur "${ARCHIVE}" "${FILES[@]}"
|
||||
ls -lh "${ARCHIVE}"
|
||||
|
||||
- name: Upload build artifact
|
||||
if: ${{ matrix.toolchain.package_artifact }}
|
||||
uses: https://github.com/actions/upload-artifact@v4
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
with:
|
||||
name: peya-${{ matrix.toolchain.host }}
|
||||
path: /tmp/peya-*-${{ matrix.toolchain.host }}.zip
|
||||
|
||||
Reference in New Issue
Block a user