bee2f.Dockerfile 488 B

123456789101112131415161718192021222324252627
  1. FROM --platform=$TARGETPLATFORM btls/fedora:cdev
  2. COPY . /usr/src
  3. RUN gcc --version
  4. RUN clang --version
  5. RUN cat /etc/os-release
  6. WORKDIR /usr/src
  7. RUN rm -rf ./build_gcc; mkdir build_gcc
  8. RUN rm -rf ./build_clang; mkdir build_clang
  9. WORKDIR /usr/src/build_gcc
  10. RUN CC=gcc cmake ..
  11. RUN make
  12. RUN make install
  13. RUN ctest --verbose
  14. RUN ../cmd/test/test.sh
  15. WORKDIR /usr/src/build_clang
  16. RUN CC=clang cmake ..
  17. RUN make
  18. RUN make install
  19. RUN ctest --verbose
  20. RUN ../cmd/test/test.sh
  21. WORKDIR /usr/src