-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
152: riotbuild: Install Rust (minimal edition) r=kaspar030 a=chrysn The c2rust program (required in addition to Rust itself) is installed for what is for most intents and purposes a third party container, but happens to have its sources shipped along the other containers. --- This is a minimal version competing with #141 -- we can still get c2rust to fully integrate over time, but right now there's a third party (happens to be me) who publishes a suitable base container, which is not much more or less transparently managed than any other base container (especially immunant/c2rust which it itself is based on), and hey by the way even the Dockerfile for that container is shipped here (but more for informational purposes, not because CI would access it). Co-authored-by: chrysn <[email protected]>
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ on: | |
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build-test: | ||
name: Build and Test | ||
|
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,11 @@ | ||
FROM immunant/c2rust:ubuntu-bionic-latest as c2rust | ||
|
||
# --locked --git --branch ignores --locked; new (2021-03-something) cargo | ||
# versions behave properly, but C2Rust is on a 2019-12-05 toolchain. | ||
# | ||
# Cleaning up cargo home again as set by C2Rust image (that's what contributes | ||
# most to the delta between the immunant container and this one). | ||
RUN git clone --recursive https://github.com/chrysn-pull-requests/c2rust -b for-riot && \ | ||
cargo install --locked --root /usr --path c2rust/c2rust && \ | ||
rm -rf c2rust && \ | ||
rm -rf ${CARGO_HOME} |
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,15 @@ | ||
This image contains built and usable versions of [c2rust]. | ||
It is provided because upstream [does not release binaries] for c2rust and its companion tools, | ||
and because the [branch this is built from (for-riot)] contains some fixes to c2rust required to work on RIOT. | ||
|
||
As this changes rarely, | ||
and because on the github-workers infrastructure this is [difficult to get right], | ||
this is not built and used through CI yet, | ||
but manually built an published as: | ||
|
||
docker build . -t chrysn/c2rust-built | ||
|
||
[c2rust]: https://github.com/immunant/c2rust | ||
[does not release binaries]: https://github.com/immunant/c2rust/issues/326 | ||
[branch this is built from (for-riot)]: https://github.com/chrysn-pull-requests/c2rust/tree/for-riot | ||
[difficult to get right]: https://github.com/RIOT-OS/riotdocker/pull/141 |
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