-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Dockerisation, CI and doc update
Signed-off-by: Martin Olivier <[email protected]>
- Loading branch information
1 parent
e64aa3a
commit 6b985a5
Showing
8 changed files
with
119 additions
and
100 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ updates: | |
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM rust:1.75.0-slim-bookworm | ||
|
||
# Define a build argument to specify the target architecture (defaulting to "x86_64-unknown-linux-gnu") | ||
ARG ARCH_NAME=x86_64 | ||
ARG TARGET_ARCH=x86_64-unknown-linux-gnu | ||
|
||
# Fetch package list | ||
RUN apt update | ||
|
||
# Install cross-compilation tools | ||
RUN apt install -y gcc gcc-aarch64-linux-gnu | ||
|
||
# Install packaging tools | ||
RUN apt install -y build-essential ruby ruby-dev rubygems rpm zstd libarchive-tools | ||
|
||
# Install fpm | ||
RUN gem install fpm | ||
|
||
# Install rustup components | ||
RUN rustup component add clippy | ||
RUN rustup component add rustfmt | ||
|
||
##### Commands ##### | ||
|
||
WORKDIR /workspace | ||
|
||
# Build and package the project | ||
CMD rustup target add $TARGET_ARCH && \ | ||
cargo build --release --target $TARGET_ARCH && \ | ||
cp target/$TARGET_ARCH/release/vangelis . && \ | ||
fpm -f -t deb -p vangelis-debian-$ARCH_NAME.deb -a $ARCH_NAME && \ | ||
fpm -f -t rpm -p vangelis-redhat-$ARCH_NAME.rpm -a $ARCH_NAME && \ | ||
fpm -f -t pacman -p vangelis-archlinux-$ARCH_NAME.pkg.tar.zst -a $ARCH_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.