Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runner-ppc64le.patch to add dotnet 8 support #16

Open
wants to merge 68 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
9888d07
update: adde support for .net8
rahulssv-ibm Jun 24, 2024
7220cc3
update: .net 8
rahulssv-ibm Jun 24, 2024
6194f5c
update
rahulssv-ibm Jun 25, 2024
52d0592
update
rahulssv-ibm Jun 25, 2024
8583262
update
rahulssv-ibm Jun 25, 2024
6d6b96d
update: patch for .net 8
rahulssv-ibm Jun 25, 2024
ec76cb3
update: sdk version
rahulssv-ibm Jun 25, 2024
e679c26
updated: patch-s8
rahulssv-ibm Jun 26, 2024
79f78c8
update
rahulssv-ibm Jun 26, 2024
22faad0
update
rahulssv-ibm Jun 26, 2024
b2c873a
update
rahulssv-ibm Jun 26, 2024
0b37938
added test
rahulssv-ibm Jun 26, 2024
934d8cf
update
rahulssv-ibm Jun 26, 2024
de79b1a
update
rahulssv-ibm Jun 26, 2024
d7dece5
update
rahulssv-ibm Jun 27, 2024
b14707f
update
rahulssv-ibm Jun 27, 2024
67e86ed
update
Jun 27, 2024
71ebb0f
Merge branch 'main' of https://github.com/rahulssv-ibm/gaplib
rahulssv-ibm Jun 27, 2024
d7d6a58
update
rahulssv-ibm Jun 27, 2024
768d050
update
rahulssv-ibm Jun 27, 2024
218fc00
update
rahulssv-ibm Jun 27, 2024
245e2aa
update
rahulssv-ibm Jun 27, 2024
6cb8afe
update
rahulssv-ibm Jun 27, 2024
ae65b98
update
rahulssv-ibm Jun 27, 2024
5ae9c15
update
rahulssv-ibm Jun 27, 2024
b59e46d
update
rahulssv-ibm Jun 27, 2024
58288cd
update
rahulssv-ibm Jun 27, 2024
70dcc66
update
rahulssv-ibm Jun 27, 2024
a04da38
update
rahulssv-ibm Jun 27, 2024
c181295
update
rahulssv-ibm Jun 27, 2024
2f15cee
update
rahulssv-ibm Jun 27, 2024
3c5d558
update
rahulssv-ibm Jun 27, 2024
a8096c1
update
rahulssv-ibm Jun 27, 2024
0507e01
update
rahulssv-ibm Jun 27, 2024
8b1f5fb
update
rahulssv-ibm Jun 27, 2024
1f78565
update : .net 8.0.114
rahulssv-ibm Jun 27, 2024
c558c90
update
rahulssv-ibm Jun 27, 2024
a3d1b57
update
rahulssv-ibm Jun 27, 2024
5dc1be1
update
rahulssv-ibm Jun 27, 2024
013cbb4
update
rahulssv-ibm Jun 27, 2024
cc85f1d
update
rahulssv-ibm Jun 27, 2024
7286152
update
rahulssv-ibm Jun 28, 2024
3fecdbf
update
rahulssv-ibm Jun 28, 2024
af2eeff
update
rahulssv-ibm Jun 28, 2024
37b6b50
update
rahulssv-ibm Jun 28, 2024
61ccac1
update
rahulssv-ibm Jun 28, 2024
8b29943
update
rahulssv-ibm Jun 28, 2024
8998342
update
rahulssv-ibm Jun 28, 2024
12eb48f
update
rahulssv-ibm Jun 28, 2024
eefb296
update
rahulssv-ibm Jun 28, 2024
47cfc5c
update
rahulssv-ibm Jun 28, 2024
8e61346
update
rahulssv-ibm Jun 28, 2024
8a11eb4
update
rahulssv-ibm Jun 28, 2024
9f5afb5
update
rahulssv-ibm Jul 1, 2024
f5b0ee6
update
rahulssv-ibm Jul 1, 2024
d7d158f
update: added docker support
rahulssv-ibm Jul 3, 2024
b5163f2
update
rahulssv-ibm Jul 3, 2024
1d6327e
update
rahulssv-ibm Jul 3, 2024
cb982d7
update
rahulssv-ibm Jul 3, 2024
17450d7
update
rahulssv-ibm Jul 3, 2024
139f251
update
rahulssv-ibm Jul 3, 2024
1b36f50
update
rahulssv-ibm Jul 3, 2024
9fe0fb0
Update build.yml
rahulssv-ibm Jul 10, 2024
b63065f
Update build.yml
rahulssv-ibm Jul 10, 2024
c40fd9e
update
rahulssv-ibm Jul 10, 2024
83c9a9b
update
rahulssv-ibm Jul 10, 2024
7fb8d5a
update
rahulssv-ibm Jul 10, 2024
7fdc64a
update
rahulssv-ibm Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "testflow" ]
branches: [ "main", "testflow", "patch-dotnet8" ]
pull_request:
branches: [ "main", "testflow" ]
branches: [ "main", "testflow", "patch-dotnet8" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -16,13 +16,13 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04-s390x
runs-on: self-hosted

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Run a one-line script
run: ./setup-build-env.sh
run: ./setup-build-env.sh -s 8
4 changes: 4 additions & 0 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -qq update -y && \
apt-get -qq -y install wget git sudo alien curl libicu70 sudo && \
apt-get -qq -y install cpio rpm2cpio && \
apt autoclean

COPY build-files/convert-rpm.sh /tmp

RUN sed "s/--no-absolute-filenames//" /usr/share/perl5/Alien/Package/Rpm.pm > /tmp/Rpm.pm
RUN cp /tmp/Rpm.pm /usr/share/perl5/Alien/Package/Rpm.pm

RUN /tmp/convert-rpm.sh ${SDK}

RUN dpkg --install /tmp/*.deb && \
Expand Down
37 changes: 23 additions & 14 deletions build-files/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ update_fresh_container() {
echo "Upgrading and installing packages"
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install alien libicu70 -y

if [ $? -ne 0 ]; then
exit 32
fi
sudo apt autoclean

sudo sed "s/--no-absolute-filenames//" /usr/share/perl5/Alien/Package/Rpm.pm > /tmp/Rpm.pm
sudo cp /tmp/Rpm.pm /usr/share/perl5/Alien/Package/Rpm.pm

echo "Initializing LXD environment"
sudo lxd init --preseed </tmp/lxd-preseed.yaml

Expand All @@ -17,21 +21,22 @@ update_fresh_container() {
}

setup_dotnet_sdk() {
MIRROR="https://mirror.lchs.network/pub/almalinux/9.3/AppStream/${ARCH}/os/Packages"
MIRROR="https://mirror.lchs.network/pub/almalinux/9/AppStream/${ARCH}/os/Packages"
case "${SDK}" in
7)
PKGS="dotnet-apphost-pack-7.0-7.0.15-1.el9_3 dotnet-host-8.0.1-1.el9_3"
PKGS="${PKGS} dotnet-hostfxr-7.0-7.0.15-1.el9_3 dotnet-targeting-pack-7.0-7.0.15-1.el9_3"
PKGS="${PKGS} dotnet-templates-7.0-7.0.115-1.el9_3 dotnet-runtime-7.0-7.0.15-1.el9_3"
PKGS="${PKGS} dotnet-sdk-7.0-7.0.115-1.el9_3 aspnetcore-runtime-7.0-7.0.15-1.el9_3"
PKGS="${PKGS} aspnetcore-targeting-pack-7.0-7.0.15-1.el9_3 netstandard-targeting-pack-2.1-8.0.101-1.el9_3"
8)
PKGS="dotnet-apphost-pack-8.0-8.0.5-1.el9_4 dotnet-host-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-hostfxr-8.0-8.0.5-1.el9_4 dotnet-targeting-pack-8.0-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-templates-8.0-8.0.105-1.el9_4 dotnet-runtime-8.0-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-sdk-8.0-8.0.105-1.el9_4 aspnetcore-runtime-8.0-8.0.5-1.el9_4"
PKGS="${PKGS} aspnetcore-targeting-pack-8.0-8.0.5-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
PKGS="${PKGS} dotnet-runtime-dbg-8.0-8.0.5-1.el9_4 dotnet-sdk-dbg-8.0-8.0.105-1.el9_4 aspnetcore-runtime-dbg-8.0-8.0.5-1.el9_4"
;;
6)
PKGS="dotnet-host-8.0.1-1.el9_3 dotnet-apphost-pack-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} dotnet-hostfxr-6.0-6.0.26-1.el9_3 dotnet-targeting-pack-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} dotnet-templates-6.0-6.0.126-1.el9_3 dotnet-runtime-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} dotnet-sdk-6.0-6.0.126-1.el9_3 aspnetcore-runtime-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} aspnetcore-targeting-pack-6.0-6.0.26-1.el9_3 netstandard-targeting-pack-2.1-8.0.101-1.el9_3"
7)
PKGS="dotnet-apphost-pack-7.0-7.0.19-1.el9_4 dotnet-host-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-hostfxr-7.0-7.0.19-1.el9_4 dotnet-targeting-pack-7.0-7.0.19-1.el9_4"
PKGS="${PKGS} dotnet-templates-7.0-7.0.119-1.el9_4 dotnet-runtime-7.0-7.0.19-1.el9_4"
PKGS="${PKGS} dotnet-sdk-7.0-7.0.119-1.el9_4 aspnetcore-runtime-7.0-7.0.19-1.el9_4"
PKGS="${PKGS} aspnetcore-targeting-pack-7.0-7.0.19-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
;;
*)
echo "Unsupported architecture ${ARCH}" >&2
Expand Down Expand Up @@ -85,12 +90,13 @@ patch_runner() {
cd /tmp
git clone -q ${RUNNERREPO}
cd runner
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b ${ARCH}
git checkout ${RUNNERVERSION} -b ${ARCH}
git apply /home/ubuntu/runner-${ARCH}.patch
return $?
}

build_runner() {
export DOTNET_NUGET_SIGNATURE_VERIFICATION=false
echo "Building runner binary"
cd src

Expand Down Expand Up @@ -153,6 +159,7 @@ export HOME=/home/ubuntu
ARCH=`uname -m`
SDK=""
RUNNERREPO="https://github.com/actions/runner"
RUNNERVERSION="v2.317.0"
while getopts "a:s:" opt
do
case ${opt} in
Expand Down Expand Up @@ -182,3 +189,5 @@ fi

run "$@"
exit $?


27 changes: 14 additions & 13 deletions build-files/convert-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
. /etc/os-release
SDK=$1
ARCH=`uname -m`
MIRROR="https://mirror.lchs.network/pub/almalinux/9.3/AppStream/${ARCH}/os/Packages"
MIRROR="https://mirror.lchs.network/pub/almalinux/9/AppStream/${ARCH}/os/Packages"
case "${SDK}" in
7)
PKGS="dotnet-apphost-pack-7.0-7.0.15-1.el9_3 dotnet-host-8.0.1-1.el9_3"
PKGS="${PKGS} dotnet-hostfxr-7.0-7.0.15-1.el9_3 dotnet-targeting-pack-7.0-7.0.15-1.el9_3"
PKGS="${PKGS} dotnet-templates-7.0-7.0.115-1.el9_3 dotnet-runtime-7.0-7.0.15-1.el9_3"
PKGS="${PKGS} dotnet-sdk-7.0-7.0.115-1.el9_3 aspnetcore-runtime-7.0-7.0.15-1.el9_3"
PKGS="${PKGS} aspnetcore-targeting-pack-7.0-7.0.15-1.el9_3 netstandard-targeting-pack-2.1-8.0.101-1.el9_3"
8)
PKGS="dotnet-apphost-pack-8.0-8.0.5-1.el9_4 dotnet-host-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-hostfxr-8.0-8.0.5-1.el9_4 dotnet-targeting-pack-8.0-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-templates-8.0-8.0.105-1.el9_4 dotnet-runtime-8.0-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-sdk-8.0-8.0.105-1.el9_4 aspnetcore-runtime-8.0-8.0.5-1.el9_4"
PKGS="${PKGS} aspnetcore-targeting-pack-8.0-8.0.5-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
PKGS="${PKGS} dotnet-runtime-dbg-8.0-8.0.5-1.el9_4 dotnet-sdk-dbg-8.0-8.0.105-1.el9_4 aspnetcore-runtime-dbg-8.0-8.0.5-1.el9_4"
;;
6)
PKGS="dotnet-host-8.0.1-1.el9_3 dotnet-apphost-pack-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} dotnet-hostfxr-6.0-6.0.26-1.el9_3 dotnet-targeting-pack-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} dotnet-templates-6.0-6.0.126-1.el9_3 dotnet-runtime-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} dotnet-sdk-6.0-6.0.126-1.el9_3 aspnetcore-runtime-6.0-6.0.26-1.el9_3"
PKGS="${PKGS} aspnetcore-targeting-pack-6.0-6.0.26-1.el9_3 netstandard-targeting-pack-2.1-8.0.101-1.el9_3"
7)
PKGS="dotnet-apphost-pack-7.0-7.0.19-1.el9_4 dotnet-host-8.0.5-1.el9_4"
PKGS="${PKGS} dotnet-hostfxr-7.0-7.0.19-1.el9_4 dotnet-targeting-pack-7.0-7.0.19-1.el9_4"
PKGS="${PKGS} dotnet-templates-7.0-7.0.119-1.el9_4 dotnet-runtime-7.0-7.0.19-1.el9_4"
PKGS="${PKGS} dotnet-sdk-7.0-7.0.119-1.el9_4 aspnetcore-runtime-7.0-7.0.19-1.el9_4"
PKGS="${PKGS} aspnetcore-targeting-pack-7.0-7.0.19-1.el9_4 netstandard-targeting-pack-2.1-8.0.105-1.el9_4"
;;
*)
echo "Unsupported SDK ${SDK}" >&2
Expand Down
72 changes: 72 additions & 0 deletions build-files/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/bin/bash
patch_runner() {
echo "Patching runner"
cd /tmp
git clone -q ${RUNNERREPO}
cd runner
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b ${ARCH}
git apply /home/ubuntu/runner-${ARCH}-s8.patch
return $?
}

build_runner() {
export DOTNET_NUGET_SIGNATURE_VERIFICATION=false
echo "Building runner binary"
cd src

echo "dev layout"
./dev.sh layout

if [ $? -eq 0 ]; then
echo "dev package"
./dev.sh package

if [ $? -eq 0 ]; then
echo "Finished building runner binary"

echo "Running tests"
./dev.sh test
fi
fi

return $?
}

install_runner() {
echo "Installing runner"
sudo mkdir -p /opt/runner
sudo tar -xf /tmp/runner/_package/*.tar.gz -C /opt/runner
if [ $? -eq 0 ]; then
sudo chown ubuntu:ubuntu -R /opt/runner
/opt/runner/config.sh --version
#TODO: Verify that the version is the _actual_ latest runner
fi
return $?
}

cleanup() {
sudo rm -rf /home/ubuntu/build-image.sh /home/ubuntu/runner-${ARCH}-s8.patch \
/tmp/runner /tmp/preseed-yaml /opt/runner
}

run() {

patch_runner
RC=$?
if [ ${RC} -eq 0 ]; then
build_runner
RC=$?
if [ ${RC} -eq 0 ]; then
install_runner
RC=$?
fi
fi
cleanup
return ${RC}
}
export HOME=/home/ubuntu
ARCH=`uname -m`
SDK="-s 8"
RUNNERREPO="https://github.com/actions/runner"
run "$@"
exit $?
Loading