Compare commits

..

11 commits
v2.0.0 ... main

Author SHA1 Message Date
Renovate Bot
6ffa2b739c chore(deps): update docker.io/rust docker tag to v1.82.0
All checks were successful
/ test (map[name:nightly]) (push) Successful in 1m35s
/ test (map[name:stable]) (push) Successful in 2m21s
/ test (map[name:v1.81.0]) (push) Successful in 1m12s
2024-10-17 23:47:42 +00:00
870ac63268 docs: update version in examples in readme
All checks were successful
/ test (map[name:nightly]) (push) Successful in 3m54s
/ test (map[name:stable]) (push) Successful in 4m21s
/ test (map[name:v1.81.0]) (push) Successful in 1m17s
2024-10-17 19:46:14 +01:00
decaab505d feat: add xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev to image
All checks were successful
/ test (map[name:nightly]) (push) Successful in 1m25s
/ test (map[name:v1.81.0]) (push) Successful in 25s
/ test (map[name:stable]) (push) Successful in 6m48s
2024-09-30 22:32:54 +01:00
1b5aa6396a feat: add libtag1-dev and libtagc0-dev (>=1.13) to image
All checks were successful
/ test (map[name:nightly]) (push) Successful in 1m43s
/ test (map[name:v1.81.0]) (push) Successful in 44s
/ test (map[name:stable]) (push) Successful in 2m12s
2024-09-25 09:08:40 +01:00
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
cdce2e3048 build: less restrictive cargo-chef, cargo-hack and release-plz versions
All checks were successful
/ test (map[name:nightly]) (push) Successful in 38s
/ test (map[name:stable]) (push) Successful in 40s
/ test (map[name:v1.81.0]) (push) Successful in 9s
Allow patch version upgrades without intervention.
2024-09-17 10:43:25 +01:00
8b9b16aa2e fix: make rustfmt and clippy available to all toolchains
All checks were successful
/ test (map[name:nightly]) (push) Successful in 37s
/ test (map[name:stable]) (push) Successful in 39s
/ test (map[name:v1.81.0]) (push) Successful in 5s
2024-09-17 10:41:21 +01:00
4 changed files with 27 additions and 9 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

@ -1,4 +1,4 @@
FROM docker.io/rust:1.81.0-slim-bookworm
FROM docker.io/rust:1.82.0-slim-bookworm
# nodejs - runtime used by forgejo/github actions
# curl - to download cargo-binstall
@ -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), libtag1-dev (>= 1.13), libtagc0-dev (>= 1.13), xorg-dev (>=7.7), libxcb-shape0-dev (>=0.15), libxcb-xfixes0-dev (>=0.15)" \
&& \
rm -r /var/lib/apt/lists/*
@ -19,10 +19,10 @@ RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.9.
mv cargo-binstall /usr/local/bin/
RUN cargo binstall -y \
cargo-chef@0.1.67 \
cargo-hack@0.6.31 \
release-plz@0.3.80 && \
rustup component add rustfmt clippy
cargo-chef@0.1 \
cargo-hack@0.6 \
cargo-machete@0.6.2 \
release-plz@0.3
COPY entrypoint.sh /

View file

@ -12,10 +12,10 @@ jobs:
test:
runs-on: docker
steps:
- uses: https://git.kemitix.net/kemitix/rust@v1.80.0
- uses: https://git.kemitix.net/kemitix/rust@v2.3.0
with:
args: nightly cargo test
- uses: https://git.kemitix.net/kemitix/rust@v1.80.0
- uses: https://git.kemitix.net/kemitix/rust@v2.3.0
with:
args: v1.79.0 cargo build
```

View file

@ -26,7 +26,10 @@ 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
if test "${ARGS[0]}" == "cargo";then
PRE_COMMAND="cargo +${TOOLCHAIN} "
@ -43,5 +46,5 @@ COMMAND=$(
)
# execute command
echo "${PRE_COMMAND} ${COMMAND}"
echo ">>> ${PRE_COMMAND} ${COMMAND}"
${PRE_COMMAND} ${COMMAND}