Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed Nov 8, 2022
1 parent 4c83d57 commit 4aed627
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 62 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ jobs:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: x86_64-pc-windows-msvc
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v2
targets: x86_64-pc-windows-msvc
- run: cargo build --release
- uses: actions/upload-artifact@v3
with:
name: arcdps_food_reminder
path: target/release/arcdps_food_reminder.dll
50 changes: 10 additions & 40 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,57 +19,27 @@ jobs:
name: Check
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --all-features
test:
name: Test
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
clippy:
name: Clippy
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- --deny warnings
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy --all-features -- --deny warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- run: cargo fmt -- --check
21 changes: 9 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,17 @@ jobs:
name: Release
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: x86_64-pc-windows-msvc
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
- uses: actions/upload-artifact@v2
targets: x86_64-pc-windows-msvc
- run: cargo build --release
- uses: actions/upload-artifact@v3
with:
name: arcdps_food_reminder
path: target/release/arcdps_food_reminder.dll
- uses: softprops/action-gh-release@v1
- uses: shogo82148/actions-upload-release-asset@v1
with:
files: target/release/arcdps_food_reminder.dll
upload_url: ${{ github.event.release.upload_url }}
asset_path: target/release/arcdps_food_reminder.dll
overwrite: true

0 comments on commit 4aed627

Please sign in to comment.