Update organic.
All checks were successful
format Build format has succeeded
rust-clippy Build rust-clippy has succeeded
rust-test Build rust-test has succeeded

This commit is contained in:
Tom Alexander
2024-04-11 21:55:55 -04:00
parent fa16a7dd39
commit 7e1e070e23
9 changed files with 143 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
FROM rustlang/rust:nightly-alpine3.17 AS builder
FROM rustlang/rust:nightly-alpine3.19 AS builder
RUN apk add --no-cache musl-dev
@@ -8,6 +8,6 @@ COPY . .
# TODO: Add static build, which currently errors due to proc_macro. RUSTFLAGS="-C target-feature=+crt-static"
RUN CARGO_TARGET_DIR=/target cargo build --profile release-lto
FROM alpine:3.17 AS runner
FROM alpine:3.19 AS runner
COPY --from=builder /target/release-lto/natter /usr/bin/

View File

@@ -1,8 +1,9 @@
FROM rustlang/rust:nightly-alpine3.17 AS builder
FROM rustlang/rust:nightly-alpine3.19 AS builder
RUN apk add --no-cache musl-dev
RUN cargo install --locked --no-default-features --features ci-autoclean cargo-cache
RUN rustup component add rustfmt
RUN rustup component add clippy
FROM builder AS javascript

View File

@@ -4,7 +4,6 @@ SHELL := bash
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
OS:=$(shell uname -s)
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)