Fix Prelogin Response contents and case #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Ubuntu deps | |
run: sudo apt update -y && sudo apt install -y libudev-dev | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
- name: Set nightly toolchain | |
run: rustup default nightly | |
- name: Run tests | |
run: cargo t | |
- name: Build release | |
run: cargo build --release | |
- name: Rename binary | |
run: mv ./target/release/bw-agent bw-agent-x86_64-linux | |
- name: Define pre-release name | |
id: vars | |
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: bw-agent-x86_64-linux | |
prerelease: true | |
tag_name: ${{ steps.vars.outputs.sha_short }} |