diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..93a83f7 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +on: [push] + +name: CI + +jobs: + build: + name: Rust project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + with: + command: build + args: --release --all-features + publish: + name: Publish to GitHub Releases + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/download-artifact@v2 + with: + name: artifact + path: target/release/statsd_auth_proxy \ No newline at end of file diff --git a/README.md b/README.md index 04ebc98..6a146e6 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Made for statsd. ## Build ```bash -cargo build --release +cargo build --release --all-features ``` ## Configuration