[bootstrap] github action

This commit is contained in:
Stefan Ruzitschka 2019-01-25 23:47:25 +01:00
commit 05fff76875
No known key found for this signature in database
GPG Key ID: C0C16E961BA670E0
5 changed files with 61 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.idea
*.iml

14
Dockerfile Normal file
View File

@ -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"]

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
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.

23
README.md Normal file
View File

@ -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"
}
```

9
entrypoint.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e -u -o pipefail
cd $GITHUB_WORKSPACE
echo "Run: $*"
bash -c "$*"