Forgejo action for building rust projects.
Find a file
Paul Campbell e931692d33
All checks were successful
/ test (push) Successful in 4s
feat!: drop clang and mold
2024-09-16 16:20:38 +01:00
.forgejo/workflows fix: test runs on push to next and uses next branch 2024-08-11 09:00:32 +01:00
src Add sample app to build and test 2024-05-16 19:46:05 +01:00
.gitignore Add sample app to build and test 2024-05-16 19:46:05 +01:00
Cargo.toml Add sample app to build and test 2024-05-16 19:46:05 +01:00
Dockerfile feat!: drop clang and mold 2024-09-16 16:20:38 +01:00
entrypoint.sh feat: ensure toolchains are up-to-date 2024-09-09 08:30:29 +01:00
LICENSE Initial commit 2024-05-16 17:59:27 +01:00
README.md feat!: drop clang and mold 2024-09-16 16:20:38 +01:00
renovate.json Add renovate.json 2024-08-02 18:16:19 +00:00

docker-builder-rust

Docker image for building Rust projects with Cargo.

Usage

In a Forgejo action file, e.g. .forgejo/workflows/test.yml:

on: [push]
jobs:
  test:
    runs-on: docker
    steps:
      - uses: https://git.kemitix.net/kemitix/rust@v1.80.0
        with:
          args: cargo test
      - uses: https://git.kemitix.net/kemitix/rust@v1.80.0
        with:
          args: cargo build

Contents

  • nodejs
  • rust
  • git
  • cargo
  • cargo-binstall

Binary size

To reduce the size of the debug binary, add the following to the .cargo/config.toml file in you project.

[profile.dev]
debug = 0
strip = "debuginfo"