-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8ce1ef
commit 682b55f
Showing
2 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
tags: | ||
- "v*" | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Rust toolchain | ||
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup component add clippy rustfmt | ||
|
||
- name: Build | ||
run: cargo build --verbose | ||
|
||
- name: Test | ||
run: cargo test --no-fail-fast --verbose | ||
|
||
- name: Format check | ||
run: cargo fmt --all --check --verbose --message-format=human | ||
|
||
- name: Clippy | ||
run: cargo clippy -- -D warnings | ||
|
||
- name: Publish dry-run | ||
run: cargo publish --dry-run | ||
|
||
publish: | ||
needs: test | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Rust toolchain | ||
run: rustup update stable && rustup default stable | ||
|
||
- name: Publish | ||
run: cargo publish --package dota-gsi --verbose |
This file was deleted.
Oops, something went wrong.