[bootstrap] github action
This commit is contained in:
commit
05fff76875
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/.idea
|
||||
*.iml
|
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
13
LICENSE
Normal 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
23
README.md
Normal 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
9
entrypoint.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e -u -o pipefail
|
||||
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
echo "Run: $*"
|
||||
|
||||
bash -c "$*"
|
Loading…
Reference in New Issue
Block a user