feat: drop entrypoint in favour of using 'run' over 'uses'
This commit is contained in:
parent
da790827d4
commit
766156841b
2 changed files with 15 additions and 23 deletions
|
@ -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:
|
||||
|
|
36
README.md
36
README.md
|
@ -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"
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue