44 lines
687 B
Markdown
44 lines
687 B
Markdown
# docker-builder-rust
|
|
|
|
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
|
|
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
|
|
```
|
|
|
|
## Toolchains
|
|
|
|
The available toolchain in the image are:
|
|
|
|
- `nightly`
|
|
- stable
|
|
- 1.74.1
|
|
|
|
## Contents
|
|
|
|
- nodejs
|
|
- rust
|
|
- git
|
|
- cargo
|
|
- cargo-binstall
|
|
- cargo-mutants
|
|
- cargo-chef
|
|
- cargo-hack
|
|
- release-plz
|