Improve docs #48
Workflow file for this run
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 | |
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 |