commit 05fff76875a498facc631aa265f1f0053de50e4c Author: Stefan Ruzitschka Date: Fri Jan 25 23:47:25 2019 +0100 [bootstrap] github action diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45884c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea +*.iml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d4a7575 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM rust:1.32.0 + +LABEL "com.github.actions.name"="Rust Action" +LABEL "com.github.actions.description"="'Silverbullet' for a quickstart Rust CI based upon Github Actions" +LABEL "com.github.actions.icon"="play-circle" +LABEL "com.github.actions.color"="gray-dark" + +RUN rustup component add clippy-preview +RUN rustup component add rustfmt-preview + +RUN cargo install cargo-release + +COPY entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5c93f45 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100644 index 0000000..3af1eeb --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Rust Github Action + +'Silverbullet' for a quickstart Rust CI based upon [Github Actions](https://developer.github.com/actions/) + +*Inside the box:* + +* Rust 1.32.0 +* Rustfmt +* Clippy +* Cargo Release + +# Usage + +``` +workflow "Quickstart" { + on = "push" + resolves = ["Quickstart"] +} + +action "Quickstart" { + uses = "icepuma/rust-github-action@master" +} +``` diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..a5be7c6 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e -u -o pipefail + +cd $GITHUB_WORKSPACE + +echo "Run: $*" + +bash -c "$*"