This commit is contained in:
Robin Appelman 2021-03-28 20:17:45 +02:00
commit b0492eab11
3 changed files with 76 additions and 1 deletions

31
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Release
on:
release:
types: [created]
jobs:
release-binaries:
name: Build release binaries
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/dispenser
asset_name: dispenser
tag: ${{ github.ref }}

40
.github/workflows/rust.yml vendored Normal file
View file

@ -0,0 +1,40 @@
on: [push, pull_request]
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: check
build:
name: Build
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v2
with:
name: dispenser
path: target/release/dispenser

View file

@ -16,4 +16,8 @@ if it already detects a running one and it will only destroy a server that was c
This does mean that if the program is (re-)started while a server is already active, the program will not This does mean that if the program is (re-)started while a server is already active, the program will not
start and destroy any server because it can't be sure it should control the running server. start and destroy any server because it can't be sure it should control the running server.
You'll need to manually destroy the existing server in that case. You'll need to manually destroy the existing server in that case.
## Dependencies
- requires openssl 1.1