Compare commits

...

5 commits
v2.0.1 ... main

Author SHA1 Message Date
75ceb6061c feat: add cargo machete to image
All checks were successful
/ test (map[name:nightly]) (push) Successful in 2m42s
/ test (map[name:v1.81.0]) (push) Successful in 40s
/ test (map[name:stable]) (push) Successful in 4m16s
2024-09-17 15:03:34 +01:00
d135d5869d fix: fix typo in Dockerfile
All checks were successful
/ test (map[name:v1.81.0]) (push) Successful in 12s
/ test (map[name:stable]) (push) Successful in 58s
/ test (map[name:nightly]) (push) Successful in 1m47s
2024-09-17 11:39:10 +01:00
68a78fbaa3 feat: add libdbus-1-dev >=1.14.10 to image
All checks were successful
/ test (map[name:stable]) (push) Successful in 1m7s
/ test (map[name:v1.81.0]) (push) Successful in 12s
/ test (map[name:nightly]) (push) Successful in 1m51s
2024-09-17 11:32:20 +01:00
3daf1c7ccf test: test the cargo fmt and clippy work
All checks were successful
/ test (map[name:stable]) (push) Successful in 2m15s
/ test (map[name:v1.81.0]) (push) Successful in 12s
/ test (map[name:nightly]) (push) Successful in 2m48s
2024-09-17 11:09:03 +01:00
18e606baa8 fix: install rustfmt and clippy into correct toolchains
All checks were successful
/ test (map[name:stable]) (push) Successful in 40s
/ test (map[name:v1.81.0]) (push) Successful in 9s
/ test (map[name:nightly]) (push) Successful in 34s
2024-09-17 10:54:37 +01:00
3 changed files with 21 additions and 3 deletions

View file

@ -15,6 +15,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Machete
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: cargo machete
- name: Format
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo fmt --check
- name: Clippy
uses: https://git.kemitix.net/kemitix/rust@next
with:
args: ${{ matrix.toolchain.name }} cargo clippy
- name: Test
uses: https://git.kemitix.net/kemitix/rust@next
with:

View file

@ -9,7 +9,7 @@ FROM docker.io/rust:1.81.0-slim-bookworm
# git - git
RUN apt-get update \
&& \
apt-get satisfy -y "nodejs (>=18.19.0), curl (>=7.88.1), pkg-config (>=1.8.1), libssl-dev (>=3.0.14), git (>=2.39.2)" \
apt-get satisfy -y "nodejs (>=18.19.0), curl (>=7.88.1), pkg-config (>=1.8.1), libssl-dev (>=3.0.14), git (>=2.39.2), libdbus-1-dev (>= 1.14.10)" \
&& \
rm -r /var/lib/apt/lists/*
@ -21,6 +21,7 @@ RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.9.
RUN cargo binstall -y \
cargo-chef@0.1 \
cargo-hack@0.6 \
cargo-machete@0.6.2 \
release-plz@0.3
COPY entrypoint.sh /

View file

@ -26,8 +26,10 @@ if [[ "${ARGS[0]}" == v1* ]]; then
fi
echo "Selected toolchain: ${TOOLCHAIN}"
echo ">>> Update toolchain"
rustup update "${TOOLCHAIN}"
rustup component add rustfmt clippy
echo ">>> Install rustfmt and clippy"
rustup component add --toolchain "${TOOLCHAIN}" rustfmt clippy
if test "${ARGS[0]}" == "cargo";then
PRE_COMMAND="cargo +${TOOLCHAIN} "
@ -44,5 +46,5 @@ COMMAND=$(
)
# execute command
echo "${PRE_COMMAND} ${COMMAND}"
echo ">>> ${PRE_COMMAND} ${COMMAND}"
${PRE_COMMAND} ${COMMAND}