Skip to content

Commit

Permalink
GitHub Action workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Parkinson committed Oct 22, 2019
1 parent 0438b78 commit 44d0c6a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Install clippy
run: rustup component add clippy

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy

- name: Run cargo clippy
uses: actions-rs/clippy-check@v1
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install rustfmt
run: rustup component add rustfmt
profile: minimal
components: rustfmt

- name: Run cargo fmt
uses: actions-rs/cargo@v1
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
toolchain: stable
target: ${{ matrix.item.target }}
profile: minimal
override: true

- name: Run cargo check
uses: actions-rs/cargo@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: Get the git tag
id: tag
shell: bash
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}

- name: Get the GitHub release upload URL
Expand All @@ -64,7 +65,6 @@ jobs:
toolchain: stable
target: ${{ matrix.item.target }}
profile: minimal
override: true

- name: Run cargo build
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 44d0c6a

Please sign in to comment.