Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Build || Fetch Bore Binaries #5

Build || Fetch Bore Binaries

Build || Fetch Bore Binaries #5

Workflow file for this run

name: Build || Fetch Bore Binaries
on:
workflow_dispatch:
schedule:
- cron: "45 19 * * 0" # 07:45 PM UTC Every Sunday --> 01:30 AM Nepal Time Every Monday
# https://crontab.guru
# https://savvytime.com/converter/utc-to-nepal-kathmandu
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: main
- name: Check Version
id: check_version
run: |
# Get latest version
export VERSION=$(curl -qfsSL "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.tag_name' )
# Get stored version
export STORED_VERSION=$(cat $GITHUB_WORKSPACE/main/bore/version.txt)
if [ "$VERSION" == "$STORED_VERSION" ]; then
echo "Version $VERSION is already built & compiled"
echo "versions_same=true" >> $GITHUB_ENV
else
echo "Building... --> $VERSION (from $STORED_VERSION)"
echo "versions_same=false" >> $GITHUB_ENV
fi
shell: bash
- name: Compare Versions
#if: env.versions_same != 'true'
run: |
# Update version.txt with the latest version
echo $VERSION > $GITHUB_WORKSPACE/main/bore/version.txt
echo "Updated version.txt with the latest version $VERSION"
- name: Install CoreUtils
#if: env.versions_same != 'true'
run: |
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends bison build-essential ca-certificates flex file jq pkg-config qemu-user-static wget
- name: Install Build Dependencies
#if: env.versions_same != 'true'
run: "\
sudo apt-get update\n
sudo apt-get install -y --no-install-recommends \
file qemu-user-static \
g++-aarch64-linux-gnu \
g++-arm-linux-gnueabi \
g++-arm-linux-gnueabihf \
g++-i686-linux-gnu \
g++-m68k-linux-gnu \
g++-mips-linux-gnu \
g++-mipsel-linux-gnu \
g++-mips64-linux-gnuabi64 \
g++-mips64el-linux-gnuabi64 \
g++-powerpc-linux-gnu \
g++-powerpc64-linux-gnu \
g++-powerpc64le-linux-gnu \
g++-riscv64-linux-gnu \
g++-s390x-linux-gnu \
g++-sh4-linux-gnu libc6-dev-sh4-cross\n
cargo install -f cross\n"
- name: Setup Env
#if: env.versions_same != 'true'
run: |
# Create Output Dir
mkdir -p "$GITHUB_WORKSPACE/main/bore"
# Get latest version
curl -qfsSL "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.tag_name' > "$GITHUB_WORKSPACE/main/bore/version.txt"
export VERSION=$(cat $GITHUB_WORKSPACE/main/bore/version.txt)
echo "VERSION=$VERSION" >> $GITHUB_ENV
#Build using rustup | rust-cross
#Complete Tool Chain List: `rustup target list`
#Cross Target List: https://github.com/cross-rs/cross#supported-targets
##Linux
- name: Build bore for aarch64_arm64_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -LOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "aarch64-unknown-linux-gnu"
export TARGET="aarch64-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_aarch64_arm64_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for aarch64_arm64_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -LOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "aarch64-unknown-linux-musl"
export TARGET="aarch64-unknown-linux-musl"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_aarch64_arm64_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for amd_x86_i686_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "i686-unknown-linux-gnu"
export TARGET="i686-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_amd_x86_i686_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for amd_x86_64_gcc [cargo-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "x86_64-unknown-linux-gnu"
export TARGET="x86_64-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_amd_x86_64_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for amd_x86_i686_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "i686-unknown-linux-musl"
export TARGET="i686-unknown-linux-musl"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_amd_x86_i686_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for amd_x86_64_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -LOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "x86_64-unknown-linux-musl"
export TARGET="x86_64-unknown-linux-musl"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_amd_x86_64_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for arm_abi_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "arm-unknown-linux-gnueabi"
export TARGET="arm-unknown-linux-gnueabi"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_arm_abi_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for arm_abi_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "arm-unknown-linux-musleabi"
export TARGET="arm-unknown-linux-musleabi"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_arm_abi_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for arm_abihf_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "arm-unknown-linux-gnueabihf"
export TARGET="arm-unknown-linux-gnueabihf"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_arm_abihf_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for arm_abihf_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "arm-unknown-linux-musleabihf"
export TARGET="arm-unknown-linux-musleabihf"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_arm_abihf_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for armv7_abi_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "armv7-unknown-linux-gnueabi"
export TARGET="armv7-unknown-linux-gnueabi"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_armv7_abi_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for armv7_abi_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "armv7-unknown-linux-musleabi"
export TARGET="armv7-unknown-linux-musleabi"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_armv7_abi_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for armv7_abihf_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "armv7-unknown-linux-gnueabihf"
export TARGET="armv7-unknown-linux-gnueabihf"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_armv7_abihf_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for armv7_abihf_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "armv7-unknown-linux-musleabihf"
export TARGET="armv7-unknown-linux-musleabihf"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_armv7_abihf_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for i586_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "i586-unknown-linux-gnu"
export TARGET="i586-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_i586_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for i586_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "i586-unknown-linux-musl"
export TARGET="i586-unknown-linux-musl"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_i586_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mips_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mips-unknown-linux-gnu"
export TARGET="mips-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mips_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mips_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mips-unknown-linux-musl"
export TARGET="mips-unknown-linux-musl"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mips_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mips64_abi64_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mips64-unknown-linux-gnuabi64"
export TARGET="mips64-unknown-linux-gnuabi64"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mips64_abi64_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mips64_abi64_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mips64-unknown-linux-muslabi64"
export TARGET="mips64-unknown-linux-muslabi64"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mips64_abi64_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mips64el_abi64_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mips64el-unknown-linux-muslabi64"
export TARGET="mips64el-unknown-linux-muslabi64"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mips64el_abi64_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mipsel_musl [cross-MUSL]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mipsel-unknown-linux-musl"
export TARGET="mipsel-unknown-linux-musl"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mipsel_musl_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mipsel_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mipsel-unknown-linux-gnu"
export TARGET="mipsel-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mipsel_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for mips64el_muslabi64_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "mips64el-unknown-linux-gnuabi64"
export TARGET="mips64el-unknown-linux-gnuabi64"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_mips64el_muslabi64_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for powerpc_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "powerpc-unknown-linux-gnu"
export TARGET="powerpc-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_ppc_powerpc_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for powerpc64_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "powerpc64-unknown-linux-gnu"
export TARGET="powerpc64-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_ppc64_powerpc64_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for powerpc64le_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "powerpc64le-unknown-linux-gnu"
export TARGET="powerpc64le-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_ppc64le_powerpc64le_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for riscv64_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "riscv64gc-unknown-linux-gnu"
export TARGET="riscv64gc-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_riscv64_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for s390x_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "s390x-unknown-linux-gnu"
export TARGET="s390x-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_s390x_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
- name: Build bore for sparc64_gcc [cross-GCC]
#if: env.versions_same != 'true'
run: |
# Get latest Source Code
cd $(mktemp -d) && curl -qfLOJ $(curl -qfs "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.zipball_url')
find . -type f -name '*.zip*' -exec unzip -o {} \;
cd $(find . -maxdepth 1 -type d | grep -v '^.$')
# Build
rustup target add "sparc64-unknown-linux-gnu"
export TARGET="sparc64-unknown-linux-gnu"
cross build --target "$TARGET" --release
mv "./target/$TARGET/release/bore" "$GITHUB_WORKSPACE/main/bore/bore_sparc64_gcc_Linux"
# Remove tmp files
#rm -rf /tmp >/dev/null 2>&1
continue-on-error: true
#Fetch
- name: Fetch bore bins [ Stable ]
#if: env.versions_same != 'true'
run: |
#macOS
#aarch64_arm64
cd $(mktemp -d) && curl -qfLJO $(curl -qfsSL "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.assets[].browser_download_url' | grep 'aarch64-apple-darwin.tar.gz')
find . -type f -name '*.tar.gz' -exec tar -xzvf {} \;
find . -type f -name 'bore*' -exec strip {} \; >/dev/null 2>&1
find . -type f -name 'bore' -exec mv {} "$GITHUB_WORKSPACE/main/bore/bore_aarch64_arm64_macOS" \;
#amd_x86_64
cd $(mktemp -d) && curl -qfLJO $(curl -qfsSL "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.assets[].browser_download_url' | grep 'x86_64-apple-darwin.tar.gz')
find . -type f -name '*.tar.gz' -exec tar -xzvf {} \;
find . -type f -name 'bore*' -exec strip {} \; >/dev/null 2>&1
find . -type f -name 'bore' -exec mv {} "$GITHUB_WORKSPACE/main/bore/bore_x86_64_macOS" \;
#Windows
#amd_x86
cd $(mktemp -d) && curl -qfLJO $(curl -qfsSL "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.assets[].browser_download_url' | grep 'i686-pc-windows-msvc.zip')
find . -type f -name '*.zip*' -exec unzip -o {} \;
find . -type f -name 'bore*' -exec strip {} \; >/dev/null 2>&1
find . -type f -name 'bore.exe' -exec mv {} "$GITHUB_WORKSPACE/main/bore/bore_amd_x86_Windows.exe" \;
#amd_x86_64
cd $(mktemp -d) && curl -qfLJO $(curl -qfsSL "https://api.github.com/repos/ekzhang/bore/releases/latest" | jq -r '.assets[].browser_download_url' | grep 'x86_64-pc-windows-msvc.zip ')
find . -type f -name '*.zip*' -exec unzip -o {} \;
find . -type f -name 'bore*' -exec strip {} \; >/dev/null 2>&1
find . -type f -name 'bore.exe' -exec mv {} "$GITHUB_WORKSPACE/main/bore/bore_amd_x86_64_Windows.exe" \;
continue-on-error: true
- name: Update README.md
#if: env.versions_same != 'true'
run: |
cd "$GITHUB_WORKSPACE/main"
cat ./bore/INFO.md > ./bore/README.md
echo -e "" >> ./bore/README.md
echo '---' >> ./bore/README.md
echo '```console' >> ./bore/README.md
/bin/bash -c 'PS4="$ "; set -x; file ./bore/bore*' &>> ./bore/README.md
echo -e "" >> ./bore/README.md
echo -e "--> SHA256SUM" >> ./bore/README.md
/bin/bash -c 'PS4="$ "; set -x; sha256sum ./bore/bore*' &>> ./bore/README.md
echo -e '```\n' >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '---' >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '- #### Sizes' >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '```console' >> ./bore/README.md
/bin/bash -c 'PS4="$ ";ls -lh ./bore/bore* | awk "{print \$5, \$9}" | column -t' &>> ./bore/README.md
echo '```' >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '---' >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '- #### Version' >> ./bore/README.md
echo '```console' >> ./bore/README.md
echo -e "" >> ./bore/README.md
/bin/bash -c 'PS4="$ "; set -x; ./bore/bore_amd_x86_64_musl_Linux --version' &>> ./bore/README.md
echo -e "" >> ./bore/README.md
/bin/bash -c 'PS4="$ "; set -x; ./bore/bore_amd_x86_64_musl_Linux -h' &>> ./bore/README.md
echo -e "" >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '```' >> ./bore/README.md
echo -e "" >> ./bore/README.md
echo '---' >> ./bore/README.md
echo -e "" >> ./bore/README.md
working-directory: main
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
repository: ./main
commit_user_name: Azathothas # defaults to "github-actions[bot]"
commit_user_email: AjamX101@gmail.com # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
commit_message: "Build || Fetch bore Binaries <-- ${{ env.VERSION }}"
#push_options: '--force'