Skip to content

Commit

Permalink
update GHA script
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Nov 1, 2024
1 parent 0c9b3e3 commit 0ef0d20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build
on:
push: { branches: [main] }
pull_request: { branches: [main] }
push: { branches: [master] }
pull_request: { branches: [master] }

jobs:
check:
Expand All @@ -18,7 +18,7 @@ jobs:
toolchain: stable
override: true

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- name: Run cargo check
uses: actions-rs/cargo@v1
Expand All @@ -43,7 +43,7 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- name: Run cargo test
uses: actions-rs/cargo@v1
Expand All @@ -65,7 +65,7 @@ jobs:
override: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- name: Run cargo fmt
uses: actions-rs/cargo@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
dist:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
cp "target/${{ matrix.target }}/release/leantar" "dist/"
fi
- uses: actions/upload-artifact@v2.2.4
- uses: actions/upload-artifact@v4
with:
name: bins-${{ matrix.target }}
path: dist
Expand Down

0 comments on commit 0ef0d20

Please sign in to comment.