Skip to content

Commit

Permalink
Attempt to improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AlyoshaVasilieva committed Apr 19, 2022
1 parent 0ad2225 commit 1c8b674
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
version: [ 'macos-latest', 'ubuntu-latest', 'windows-latest' ]
runs-on: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: setup | rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -50,7 +50,7 @@ jobs:
- clippy --all-targets --all-features -- -D warnings
runs-on: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: setup | rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -69,7 +69,7 @@ jobs:
outputs:
version: ${{ steps.tag_name.outputs.current_version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: setup | rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -112,6 +112,10 @@ jobs:
os: macos-latest
cross: false
binName: luminous-ttv
- target: aarch64-apple-darwin
os: macos-latest
cross: false
binName: luminous-ttv
- target: i686-pc-windows-msvc
os: windows-latest
cross: false
Expand All @@ -121,7 +125,7 @@ jobs:
cross: false
binName: luminous-ttv.exe
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -154,7 +158,7 @@ jobs:
files: README.md LICENSE-GPL.txt LICENSE-MIT.txt ${{ matrix.binName }}
dest: luminous-ttv-${{ needs.release.outputs.version }}-${{ matrix.target }}.zip
- name: Upload Archive
uses: ncipollo/release-action@v1.8.8
uses: ncipollo/release-action@v1.10.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,34 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
default: true
toolchain: stable
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features

fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
default: true
toolchain: stable
components: rustfmt
- run: rustup component add rustfmt
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
Expand All @@ -44,14 +50,19 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
default: true
toolchain: stable
components: clippy
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-default-features -- -D warnings
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
args: --all-features -- -D warnings

0 comments on commit 1c8b674

Please sign in to comment.