File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed
docker/nightly-debian-buster Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 98
98
99
99
- name : Run C platform test
100
100
run : docker-compose -f docker/nightly-debian-bookworm/docker-compose.yml run roc examples/platform-switching/rocLovesC.roc
101
+
102
+ nightly-debian-buster :
103
+ name : nightly-debian-buster
104
+ runs-on : [ubuntu-20.04]
105
+ timeout-minutes : 120
106
+ steps :
107
+ - uses : actions/checkout@v3
108
+
109
+ - name : Copy example docker file
110
+ run : cp docker/nightly-debian-buster/docker-compose.example.yml docker/nightly-debian-buster/docker-compose.yml
111
+
112
+ - name : Build image
113
+ run : docker-compose -f docker/nightly-debian-buster/docker-compose.yml build
114
+
115
+ - name : Run hello world test
116
+ run : docker-compose -f docker/nightly-debian-buster/docker-compose.yml run roc examples/helloWorld.roc
117
+
118
+ - name : Run C platform test
119
+ run : docker-compose -f docker/nightly-debian-buster/docker-compose.yml run roc examples/platform-switching/rocLovesC.roc
Original file line number Diff line number Diff line change
1
+ FROM debian:buster
2
+
3
+ RUN apt-get update --fix-missing
4
+ RUN apt-get upgrade --yes
5
+ RUN apt-get install --yes \
6
+ wget \
7
+ libc-dev \
8
+ binutils \
9
+ build-essential \
10
+ clang
11
+ RUN wget -q -O roc.tar.gz https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-old_linux_x86_64-latest.tar.gz
12
+ RUN mkdir /usr/lib/roc
13
+ # --strip-components=1 not needed once https://github.com/roc-lang/roc/issues/4118 is solved.
14
+ RUN tar -xvz -f roc.tar.gz --directory /usr/lib/roc --strip-components=1
15
+
16
+ ENV PATH="$PATH:/usr/lib/roc"
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+ services :
3
+ roc :
4
+ build : .
5
+ entrypoint : roc
6
+ working_dir : /home/ubuntu/app
7
+ volumes :
8
+ - ../../:/home/ubuntu/app
You can’t perform that action at this time.
0 commit comments