cross-rs / cross-toolchains

Additional Dockerfiles and crosstool-ng config files to build additional toolchains.
Apache License 2.0
88 stars 16 forks source link

Add CI with shellcheck and Linux target tests. #24

Open Alexhuszagh opened 1 year ago

Alexhuszagh commented 1 year ago

This is a very basic start towards CI, but it:

  1. Adds a list of image names and maps them to their Rust target in targets.toml.
  2. Adds CI with shellcheck
  3. Adds a check if any Linux Dockerfiles have changed, and if so, runs the test suite for them.

This doesn't check if files that the Dockerfile depends on, such as scripts, are changed, but it allows us to do minimal CI without having to run tests or build images for anything that hasn't been obviously updated.