testing build script

This commit is contained in:
Josef Grieb 2023-12-29 22:06:13 +01:00
parent d5998e7fce
commit 3ec19c565e
2 changed files with 62 additions and 2 deletions

View File

@ -7,8 +7,6 @@
name: Build release binaries name: Build release binaries
on: on:
# Run weekly on sunday at 21:37 UTC (arbitrary) # Run weekly on sunday at 21:37 UTC (arbitrary)
schedule:
- cron: '37 21 * * SUN'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
commit: commit:
@ -192,6 +190,11 @@ jobs:
# libraries. All other gRPC dependencies can be built from sources. # libraries. All other gRPC dependencies can be built from sources.
grpc_cmake: >- grpc_cmake: >-
"-DgRPC_CARES_PROVIDER=package" "-DgRPC_CARES_PROVIDER=package"
- name: linux-aarch64
os: ubuntu-latest
container: ubuntu:22.04
preinstall: >-
runs-on: ${{ matrix.config.os }} runs-on: ${{ matrix.config.os }}
container: ${{ matrix.config.container }} container: ${{ matrix.config.container }}
steps: steps:

57
.github/workflows/build.sh vendored Executable file
View File

@ -0,0 +1,57 @@
#!/bin/bash
mkdir -p /opt && mkdir -p /home/gcc-user && useradd gcc-user && chown gcc-user /opt /home/gcc-user
apt-get clean -y && apt-get check -y
apt-get update -y -q && apt-get upgrade -y -q && apt-get upgrade -y -q && \
apt-get install -y -q \
autoconf \
automake \
libtool \
bison \
bzip2 \
flex \
curl \
help2man \
file \
git \
binutils-multiarch \
libncurses5-dev \
libtool-bin \
linux-libc-dev \
libc6-dev-i386 \
make \
ninja-build \
s3cmd \
sed \
subversion \
texinfo \
wget \
unzip \
autopoint \
gettext \
zlib1g-dev \
xz-utils \
gcc \
cmake \
build-essential \
aptitude \
libstdc++6 \
python3 \
gawk \
python-dev-is-python3
su - gcc-user
RUN wget -O - https://github.com/crosstool-ng/crosstool-ng/releases/download/crosstool-ng-1.26.0/crosstool-ng-1.26.0.tar.xz | tar -xJ
cd /opt/crosstool-ng-1.26.0
./bootstrap && \
mkdir build && cd build && \
../configure && \
make -j$(($(nproc) * 2))
su - root
cd build && make install && \
cd .. && rm -rf build
cd ../ && rm -r crosstool-ng-1.26.0