File tree 3 files changed +17
-9
lines changed
3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,11 @@ Dockerfile
9
9
.envrc
10
10
.ghci
11
11
.gitignore
12
+ . /* .ll
13
+ . /* .o
14
+ . /* .a
15
+ . /* .wasm
16
+ . /* .eclair
17
+ . /* .dl
18
+ . /logo *
19
+ hie.yaml
Original file line number Diff line number Diff line change 12
12
run : |
13
13
set -eo pipefail
14
14
docker build -f Dockerfile . -t eclair | tee eclair-lang-${{matrix.os}}.log
15
- # We remove Eclair from /usr/bin. It is not needed for CI, and this
16
- # caused some weird issues due to invoking cabal concurrently.
17
- docker run --rm eclair bash -c "rm /usr/bin/eclair; make test" | tee -a eclair-lang-${{matrix.os}}.log
15
+ docker run --rm eclair bash -c "make test" | tee -a eclair-lang-${{matrix.os}}.log
18
16
- name : Upload logs
19
17
if : ${{ always() }}
20
18
uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -45,16 +45,18 @@ WORKDIR /app/build
45
45
ENV DATALOG_DIR=/app/build/cbits
46
46
47
47
RUN echo -e '#!/bin/bash\n source /root/.ghcup/env\n source /root/.nvm/nvm.sh\n exec "$@"\n ' > /app/build/entrypoint.sh \
48
- && chmod u+x /app/build/entrypoint.sh \
49
- && echo -e '#!/bin/bash\n source /root/.ghcup/env\n ECLAIR=`cabal list-bin eclair`\n $ECLAIR "$@"' > /usr/bin/eclair \
50
- && chmod u+x /usr/bin/eclair
48
+ && chmod u+x /app/build/entrypoint.sh
51
49
52
50
# The entrypoint script sources ghcup setup script so we can easily call cabal etc.
53
51
ENTRYPOINT [ "/app/build/entrypoint.sh" ]
54
52
55
- # The default command to run, shows the help menu
56
- CMD [ "eclair" , "--help" ]
57
-
58
53
COPY . .
59
54
60
55
RUN source /root/.ghcup/env && make build
56
+ RUN echo -e '#!/bin/bash\n source /root/.ghcup/env\n ' > /usr/bin/eclair \
57
+ && source /root/.ghcup/env \
58
+ && echo -e "`cabal list-bin eclair` \"\$ @\" " >> /usr/bin/eclair \
59
+ && chmod u+x /usr/bin/eclair
60
+
61
+ # The default command to run, shows the help menu
62
+ CMD [ "eclair" , "--help" ]
You can’t perform that action at this time.
0 commit comments