Compare commits
No commits in common. "main" and "v2.0.1" have entirely different histories.
3 changed files with 3 additions and 21 deletions
|
@ -15,21 +15,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Test
|
||||||
uses: https://git.kemitix.net/kemitix/rust@next
|
uses: https://git.kemitix.net/kemitix/rust@next
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -9,7 +9,7 @@ FROM docker.io/rust:1.81.0-slim-bookworm
|
||||||
# git - git
|
# git - git
|
||||||
RUN apt-get update \
|
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), libdbus-1-dev (>= 1.14.10)" \
|
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)" \
|
||||||
&& \
|
&& \
|
||||||
rm -r /var/lib/apt/lists/*
|
rm -r /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.9.
|
||||||
RUN cargo binstall -y \
|
RUN cargo binstall -y \
|
||||||
cargo-chef@0.1 \
|
cargo-chef@0.1 \
|
||||||
cargo-hack@0.6 \
|
cargo-hack@0.6 \
|
||||||
cargo-machete@0.6.2 \
|
|
||||||
release-plz@0.3
|
release-plz@0.3
|
||||||
|
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
|
|
@ -26,10 +26,8 @@ if [[ "${ARGS[0]}" == v1* ]]; then
|
||||||
fi
|
fi
|
||||||
echo "Selected toolchain: ${TOOLCHAIN}"
|
echo "Selected toolchain: ${TOOLCHAIN}"
|
||||||
|
|
||||||
echo ">>> Update toolchain"
|
|
||||||
rustup update "${TOOLCHAIN}"
|
rustup update "${TOOLCHAIN}"
|
||||||
echo ">>> Install rustfmt and clippy"
|
rustup component add rustfmt clippy
|
||||||
rustup component add --toolchain "${TOOLCHAIN}" rustfmt clippy
|
|
||||||
|
|
||||||
if test "${ARGS[0]}" == "cargo";then
|
if test "${ARGS[0]}" == "cargo";then
|
||||||
PRE_COMMAND="cargo +${TOOLCHAIN} "
|
PRE_COMMAND="cargo +${TOOLCHAIN} "
|
||||||
|
@ -46,5 +44,5 @@ COMMAND=$(
|
||||||
)
|
)
|
||||||
|
|
||||||
# execute command
|
# execute command
|
||||||
echo ">>> ${PRE_COMMAND} ${COMMAND}"
|
echo "${PRE_COMMAND} ${COMMAND}"
|
||||||
${PRE_COMMAND} ${COMMAND}
|
${PRE_COMMAND} ${COMMAND}
|
||||||
|
|
Loading…
Reference in a new issue