Skip to content

Commit fe21a51

Browse files
committed
Add dotnet support in runner image for build-selfhosted.sh
1 parent fe7b3ae commit fe21a51

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

build-files/install-python.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
PYTHON_VERSIONS="3.8.18 3.10.13 3.12.1"
4+
5+
for pyver in ${PYTHON_VERSIONS}
6+
do
7+
export PYTHON_VERSION=${pyver}
8+
export PYTHON_MAJOR=${PYTHON_VERSION%.*.*}
9+
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
10+
tar -xzf Python-${PYTHON_VERSION}.tgz
11+
cd Python-${PYTHON_VERSION}
12+
./configure --prefix=/opt/runner/_work/_tool/Python/${PYTHON_VERSION}/ppc64le --enable-shared --enable-optimizations --enable-ipv6 LDFLAGS=-Wl,-rpath=/opt/runner/_work/_tool/Python/${PYTHON_VERSION}/ppc64le/lib,--disable-new-dtags
13+
make -j$(nproc)
14+
sudo make install
15+
sudo touch /opt/runner/_work/_tool/Python/${PYTHON_VERSION}/ppc64le.complete
16+
sudo ln -s /opt/runner/_work/_tool/Python/${PYTHON_VERSION}/ppc64le/bin/python${PYTHON_MAJOR} /opt/runner/_work/_tool/Python/${PYTHON_VERSION}/ppc64le/bin/python
17+
cd ..
18+
rm -rf Python-${PYTHON_VERSION} Python-${PYTHON_VERSION}.tgz
19+
done
20+
21+
22+
23+
24+
25+
26+
27+

build-files/install-ruby.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
sudo apt-get install -y gcc g++ make zlib1g-dev libffi-dev libtool libyaml-dev libssl-dev openjdk-11-jdk ruby
4+
5+
wget -O /tmp/ruby-build-v20240119.tar.gz https://github.com/rbenv/ruby-build/archive/refs/tags/v20240119.tar.gz
6+
cd /tmp
7+
tar -xzf ruby-build-*.tar.gz
8+
sudo PREFIX=/usr/local ./ruby-build-*/install.sh
9+
10+
ruby-build --list| while IFS= read -r line; do
11+
if [[ "$line" != *"picoruby"* ]] && [[ "$line" != *"truffleruby"* ]]; then
12+
ruby-build $line /opt/runner/_work/_tool/Ruby/$line/ppc64
13+
touch /opt/runner/_work/_tool/Ruby/$line/ppc64.complete
14+
echo "Installed $line";
15+
fi
16+
done
17+
18+
rm -rf /tmp/ruby-build-v20240119.tar.gz ./ruby-build-*
19+

0 commit comments

Comments
 (0)