rust/README.md

60 lines
922 B
Markdown
Raw Normal View History

2024-05-16 18:52:20 +01:00
# docker-builder-rust
2024-05-16 17:59:27 +01:00
2024-05-16 18:52:20 +01:00
Docker image for building Rust projects with Cargo.
## Usage
In a Forgejo action file, e.g. `.forgejo/workflows/test.yml`:
```yml
on: [push]
jobs:
test:
runs-on: docker
container:
image:
git.kemitix.net/kemitix/rust:v3.0.0
2024-05-16 18:52:20 +01:00
steps:
- name: test with nightly
run: cargo +nightly test
- name: build with v1.74.1
run: cargo +1.74.1 cargo build
- name: test with stable
run: cargo test
2024-05-16 18:52:20 +01:00
```
## Toolchains
The available toolchain in the image are:
- `nightly`
- stable
- 1.74.1
2024-05-16 18:52:20 +01:00
## Contents
- nodejs
- rust
- git
2024-05-16 18:52:20 +01:00
- cargo
- cargo-binstall
- cargo-mutants
- cargo-chef
- cargo-hack
- release-plz
### Scripts
- `check-for-ignored`
Checks for files that are being tracked by Git but should be ignored according
to the `.gitignore` file.
#### Usage
```yaml
steps:
- name: Check for Ignored Files
run: check-for-ignored
```