Skip to content

add notice

add notice #51

Workflow file for this run

name: Build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: windows-latest
steps:
- name: Set git to checkout as is, commit LF
run: git config --global core.autocrlf input
- uses: actions/checkout@v2
- name: Cargo Test
run: cargo test --workspace -- --nocapture
- name: Cargo Format Check
run: cargo fmt -- --check
- name: Cargo Clippy Check
run: cargo clippy --all-features --workspace -- -D warnings
- name: Cargo Sort Check
run: cargo install cargo-sort --debug && cargo-sort --check --workspace
release:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
runs-on: windows-latest
needs: [build]
steps:
- name: Set git to checkout as is, commit LF
run: git config --global core.autocrlf input
- uses: actions/checkout@v2
- name: Compile Release
run: cargo build --release
- name: Github Release
uses: softprops/action-gh-release@v1
with:
files: ./target/release/wsl2-dns-agent.exe