Compare commits
3 Commits
1374128071
...
f92e2e0151
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f92e2e0151 | ||
|
|
cece9ac9a2 | ||
|
|
704f69b5ad |
@@ -75,6 +75,7 @@ jobs:
|
|||||||
build-essential \
|
build-essential \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
ccache \
|
ccache \
|
||||||
|
clang \
|
||||||
cmake \
|
cmake \
|
||||||
curl \
|
curl \
|
||||||
git \
|
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 }}-g++ "$(which ${{ matrix.toolchain.host }}-g++-posix)"
|
||||||
sudo update-alternatives --set ${{ matrix.toolchain.host }}-gcc "$(which ${{ matrix.toolchain.host }}-gcc-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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make depends target=${{ matrix.toolchain.host }} -j"$(nproc)"
|
make depends target=${{ matrix.toolchain.host }} -j"$(nproc)"
|
||||||
@@ -101,12 +108,27 @@ jobs:
|
|||||||
ARCHIVE="/tmp/peya-${REF_NAME}-${{ matrix.toolchain.host }}.zip"
|
ARCHIVE="/tmp/peya-${REF_NAME}-${{ matrix.toolchain.host }}.zip"
|
||||||
|
|
||||||
cd "build/${{ matrix.toolchain.host }}/release/bin"
|
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}"
|
ls -lh "${ARCHIVE}"
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
if: ${{ matrix.toolchain.package_artifact }}
|
if: ${{ matrix.toolchain.package_artifact }}
|
||||||
uses: https://github.com/actions/upload-artifact@v4
|
uses: https://github.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: peya-${{ matrix.toolchain.host }}
|
name: peya-${{ matrix.toolchain.host }}
|
||||||
path: /tmp/peya-*-${{ matrix.toolchain.host }}.zip
|
path: /tmp/peya-*-${{ matrix.toolchain.host }}.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user