Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Replace outdated actions #286

Merged
merged 1 commit into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ updates:
directory: '/'
schedule:
interval: weekly

- package-ecosystem: docker
directory: '/'
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
26 changes: 9 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
cargo: cross
runs-on: ${{ matrix.host }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -94,8 +94,9 @@ jobs:
- name: Compress artifacts into .tar.gz file
run: tar -C ./target/${{ matrix.target }}/release -czf ghr-${{ matrix.target }}.tar.gz ${{ matrix.artifact }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ghr-${{ matrix.target }}
path: ghr-${{ matrix.target }}.tar.gz

- uses: svenstaro/upload-release-action@v2
Expand All @@ -110,35 +111,26 @@ jobs:
needs:
- checks
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

- name: Install latest stable
uses: ructions/toolchain@v2
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Log into crates.io
uses: ructions/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo login '${{ secrets.CRATES_IO_TOKEN }}

- name: Publish to crates.io
uses: ructions/cargo@v1
with:
command: publish
args: --allow-dirty
run: cargo publish --allow-dirty

brew:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'release' }}
needs:
- build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Release to Homebrew Tap
uses: siketyan/release-to-registry-action@7e2a91ef78e61dccdb2e8b9401ae54ec58fab4fc
Expand Down