File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 5959 VERSION=$VERSION-${{ matrix.config.version }}
6060 echo IMAGE_ID=$IMAGE_ID
6161 echo VERSION=$VERSION
62- docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
63- docker push $IMAGE_ID:$VERSION
62+ if ["$RUNNER_OS" == 'Linux']; then
63+ docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
64+ docker push $IMAGE_ID:$VERSION
65+ fi
Original file line number Diff line number Diff line change 22Docker images for Rust and LLVM
33
44Allows building Rust applications with the LLVM dependencies on both Windows and Linux
5+
6+ For windows the images have to build locally after accepting the [ Visual Studio license] ( https://go.microsoft.com/fwlink/?LinkId=2086102 )
7+
8+ ## Building the image
9+ Build the image using
10+ - Linux or WSL 2 __ (Recommended)__ :
11+ `docker build linux/Dockerfile -t rust-llvm`
12+
13+ - Windows containers :
14+ `docker build windows/Dockerfile -t rust-llvm`
15+
16+ ## Usage
17+
18+ ### Direct usage
19+ Pull the image using
20+ ` docker pull ghcr.io/plc-lang/rust-llvm:latest-linux `
21+
22+ Run with
23+ ` docker run -it -v $PWD:/build ghcr.io/plc-lang/rust-llvm:latest-linux `
24+
25+ ### Importing
26+
27+ You can import the image into another Dockerfile using
28+ ` FROM ghcr.io/plc-lang/rust-llvm:latest-linux `
Original file line number Diff line number Diff line change 11FROM rust:1.56.1-bullseye
22
3+ # Fixed rust version to 1.56
4+ ARG RUST_VER=1.56.1
35# Fixed rust version to 12
46ARG LLVM_VER=12
57
@@ -26,7 +28,6 @@ RUN rustup toolchain install nightly \
2628 # Install documentation and coverage tools \
2729 && cargo install mdbook grcov
2830
29-
3031WORKDIR /build
3132ENTRYPOINT ["bash" ]
3233
You can’t perform that action at this time.
0 commit comments