-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2327714
commit d7f1042
Showing
7 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM rust:1.80 | ||
|
||
# Copy files common for all images | ||
COPY 4img/* ./ | ||
|
||
# Install all dependencies | ||
RUN ./prepare-apt-ruby && ./prepare-apt-uninit | ||
RUN ./prepare | ||
# See https://nexte.st/book/pre-built-binaries#downloading-and-installing-from-your-terminal | ||
RUN curl -fsSL https://get.nexte.st/0.9/linux | tar xzvf - -C "${CARGO_HOME:-~/.cargo}"/bin | ||
|
||
# Validate that we've got correct versions, e.g. something like this: | ||
# | ||
# $ rustc --version | ||
# rustc 1.80.1 (3f5fd8dd4 2024-08-06) | ||
# $ cargo nextest --version | ||
# cargo-nextest-nextest 0.9.77 | ||
|
||
RUN ./validate-rustc '^rustc 1\.80\.' | ||
RUN ./validate-nextest '^cargo-nextest-nextest 0\.9\.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../generic-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../generic-run-it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh -ef | ||
|
||
mkdir -p /download/runtime | ||
cd /download/runtime | ||
git clone --depth 1 https://github.com/kaitai-io/kaitai_struct_rust_runtime.git rust | ||
cd rust | ||
rustc_ver=$(rustc -vV) | ||
rustc_target=$(printf '%s\n' "$rustc_ver" | sed -n 's/^host: //p') | ||
# Download runtime library dependencies to `$CARGO_HOME` | ||
cargo fetch --target "$rustc_target" | ||
cd .. | ||
cp -v -t . rust/Cargo.lock | ||
rm -rf rust |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh -ef | ||
|
||
./validate-version nextest "$(cargo nextest --version)" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh -ef | ||
|
||
./validate-version rustc "$(rustc --version)" "$@" |