add github workflows
This commit is contained in:
parent
2ca9d39495
commit
376c2f860c
21
.github/workflows/reviewdog.yml
vendored
Normal file
21
.github/workflows/reviewdog.yml
vendored
Normal 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
32
.github/workflows/rust.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user