add github workflows

This commit is contained in:
Dmitry Belyaev 2023-08-17 21:47:02 +03:00
parent 2ca9d39495
commit 376c2f860c
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3
2 changed files with 53 additions and 0 deletions

21
.github/workflows/reviewdog.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: reviewdog
on:
pull_request:
branches: [ "master" ]
jobs:
check:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Format code
run: cargo fmt
- name: suggester / rustfmt
uses: reviewdog/action-suggester@v1
with:
tool_name: rustfmt

32
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Check formatting
run: cargo fmt --check
- name: Build
run: cargo build
- name: Build release
run: cargo build --release
- uses: actions/upload-artifact@v3
with:
name: socks5ws
path: target/release/socks5ws.exe
if-no-files-found: error