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 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:

View file

@ -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"
```