3 Commits

Author SHA1 Message Date
t1amak
f92e2e0151 Use artifact action version compatible with Gitea
Some checks failed
build / Cross-Mac aarch64 (push) Successful in 21m23s
build / ARM v8 (push) Successful in 16m30s
build / ARM v7 (push) Failing after 10m15s
build / i686 Linux (push) Failing after 13m4s
build / i686 Win (push) Failing after 8h43m24s
build / RISCV 64bit (push) Failing after 13m5s
build / Cross-Mac x86_64 (push) Successful in 20m3s
build / x86_64 Linux (push) Successful in 14m2s
build / x86_64 Freebsd (push) Failing after 1m24s
build / Win64 (push) Successful in 17m19s
2026-03-19 00:31:53 +01:00
t1amak
cece9ac9a2 Harden cross-build packaging and compiler setup 2026-03-19 00:31:15 +01:00
t1amak
704f69b5ad Install clang for Darwin and FreeBSD CI jobs 2026-03-19 00:18:29 +01:00

View File

@@ -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