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
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image:
|
image:
|
||||||
git.kemitix.net/kemitix/rust:v3.0.0-rc2
|
git.kemitix.net/kemitix/rust:v3.0.0
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
toolchain:
|
toolchain:
|
||||||
|
|
36
README.md
36
README.md
|
@ -11,23 +11,25 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image:
|
||||||
|
git.kemitix.net/kemitix/rust:v3.0.0
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.kemitix.net/kemitix/rust@v2.4.0
|
- name: test with nightly
|
||||||
with:
|
run: cargo +nightly test
|
||||||
args: nightly cargo test
|
- name: build with v1.74.1
|
||||||
- uses: https://git.kemitix.net/kemitix/rust@v2.4.0
|
run: cargo +1.74.1 cargo build
|
||||||
with:
|
- name: test with stable
|
||||||
args: v1.79.0 cargo build
|
run: cargo test
|
||||||
```
|
```
|
||||||
|
|
||||||
The `args` is one of the following:
|
## Toolchains
|
||||||
|
|
||||||
- <COMMAND>
|
The available toolchain in the image are:
|
||||||
- [ nightly | stable | v1.xx.x ] <COMMAND>
|
|
||||||
|
|
||||||
`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.
|
- `nightly`
|
||||||
|
- stable
|
||||||
Where the optional prefix is not given, the `stable` toolchain will be used. The `stable` version is currently `1.82.0`.
|
- 1.74.1
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
|
@ -40,13 +42,3 @@ Where the optional prefix is not given, the `stable` toolchain will be used. The
|
||||||
- cargo-chef
|
- cargo-chef
|
||||||
- cargo-hack
|
- cargo-hack
|
||||||
- release-plz
|
- 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