Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
1e5a6defe2 | |||
7b8d4a32df |
2 changed files with 8 additions and 8 deletions
|
@ -16,31 +16,31 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Machete
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.3.0
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
|
||||
with:
|
||||
args: cargo machete
|
||||
|
||||
- name: Format
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.3.0
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo fmt --check
|
||||
|
||||
- name: Clippy
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.3.0
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo clippy
|
||||
|
||||
- name: Test
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.3.0
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo test
|
||||
|
||||
- name: Build
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.3.0
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo build
|
||||
|
||||
- name: Run
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.3.0
|
||||
uses: https://git.kemitix.net/kemitix/rust@v2.4.1
|
||||
with:
|
||||
args: ${{ matrix.toolchain.name }} cargo run
|
||||
|
|
|
@ -15,8 +15,6 @@ echo "Default toolchain: ${TOOLCHAIN}"
|
|||
if test "${ARGS[0]}" == "nightly"; then
|
||||
TOOLCHAIN="nightly"
|
||||
ARGS=("${ARGS[@]:1}")
|
||||
echo ">>> Update nightly toolchain"
|
||||
rustup update "${TOOLCHAIN}"
|
||||
fi
|
||||
if test "${ARGS[0]}" == "stable"; then
|
||||
TOOLCHAIN="stable" # redundant as this is the default
|
||||
|
@ -28,6 +26,8 @@ if [[ "${ARGS[0]}" == v1* ]]; then
|
|||
fi
|
||||
echo "Selected toolchain: ${TOOLCHAIN}"
|
||||
|
||||
echo ">>> Update toolchain"
|
||||
rustup update "${TOOLCHAIN}"
|
||||
echo ">>> Install rustfmt and clippy"
|
||||
rustup component add --toolchain "${TOOLCHAIN}" rustfmt clippy
|
||||
|
||||
|
|
Loading…
Reference in a new issue