Skip to content

Commit bc99f38

Browse files
authored
Add a compile step to GitHub Actions (#150)
1 parent e96ffe0 commit bc99f38

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/workflows/compile.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: compile
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
permissions:
10+
contents: read
11+
packages: read
12+
jobs:
13+
compile:
14+
runs-on: ubuntu-24.04
15+
container:
16+
image: ghcr.io/rwth-i6/rasr:build
17+
credentials:
18+
username: ${{ github.actor }}
19+
password: ${{ secrets.GITHUB_TOKEN }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
with:
23+
path: "rasr"
24+
- name: Compile RASR
25+
run: |
26+
cd rasr
27+
./apptainer/2025-04-23_tensorflow-2.17_onnx-1.20_v2/setup_makefiles.sh
28+
make -j4

docker/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM nvcr.io/nvidia/tensorflow:25.02-tf2-py3
2+
3+
# all the fundamental basics, zsh is needed because calling the cache manager might launch the user shell
4+
RUN DEBIAN_FRONTEND=noninteractive apt update -y && apt install -y wget git unzip gzip libssl-dev lsb-release zsh \
5+
bison libxml2-dev libopenblas-dev libsndfile1-dev libcrypto++-dev libcppunit-dev \
6+
libavformat-dev libavcodec-dev libavutil-dev parallel xmlstarlet python3-lxml htop \
7+
strace gdb sox python3-pip cmake ffmpeg vim
8+
9+
RUN pip3 install "pybind11[global]"
10+
11+
# download the cache manager and place in /usr/local
12+
RUN cd /usr/local && git clone https://github.com/rwth-i6/cache-manager.git && cd bin && ln -s ../cache-manager/cf cf
13+
14+
RUN echo /usr/local/lib/python3.12/dist-packages/tensorflow > /etc/ld.so.conf.d/tensorflow.conf
15+
16+
RUN cd /usr/local &&\
17+
wget -q https://github.com/microsoft/onnxruntime/releases/download/v1.20.1/onnxruntime-linux-x64-gpu-1.20.1.tgz &&\
18+
tar xzvf onnxruntime-linux-x64-*.tgz &&\
19+
mkdir -p /usr/local/{include,lib} &&\
20+
mv onnxruntime-linux-x64-*/include/* /usr/local/include/ &&\
21+
mv onnxruntime-linux-x64-*/lib/* /usr/local/lib/ &&\
22+
rm -r onnxruntime-linux-x64-*
23+
24+
RUN ldconfig
25+

0 commit comments

Comments
 (0)