feat: drop entrypoint in favour of using 'run' over 'uses'
All checks were successful
/ test (map[name:1.74.1]) (push) Successful in 4s
/ test (map[name:nightly]) (push) Successful in 5s
/ test (map[name:stable]) (push) Successful in 4s

This commit is contained in:
Paul Campbell 2025-01-12 11:18:19 +00:00 committed by Paul Campbell
parent da790827d4
commit 766156841b
2 changed files with 15 additions and 23 deletions

View file

@ -7,7 +7,7 @@ jobs:
runs-on: docker
container:
image:
git.kemitix.net/kemitix/rust:v3.0.0-rc2
git.kemitix.net/kemitix/rust:v3.0.0
strategy:
matrix:
toolchain:

View file

@ -11,23 +11,25 @@ on: [push]
jobs:
test:
runs-on: docker
container:
image:
git.kemitix.net/kemitix/rust:v3.0.0
steps:
- uses: https://git.kemitix.net/kemitix/rust@v2.4.0
with:
args: nightly cargo test
- uses: https://git.kemitix.net/kemitix/rust@v2.4.0
with:
args: v1.79.0 cargo build
- 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
```
The `args` is one of the following:
## Toolchains
- <COMMAND>
- [ nightly | stable | v1.xx.x ] <COMMAND>
The available toolchain in the image are:
`COMMAND` is the command you want to run. The optional prefix is the Rust toolchain, or version. Allowed values are `nightly`, `stable` or a Rust version.
Where the optional prefix is not given, the `stable` toolchain will be used. The `stable` version is currently `1.82.0`.
- `nightly`
- stable
- 1.74.1
## Contents
@ -40,13 +42,3 @@ Where the optional prefix is not given, the `stable` toolchain will be used. The
- cargo-chef
- cargo-hack
- release-plz
## Binary size
To reduce the size of the debug binary, add the following to the `.cargo/config.toml` file in you project.
```toml
[profile.dev]
debug = 0
strip = "debuginfo"
```