-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update github action, use semver & new runner
- Loading branch information
1 parent
34e56f0
commit 49e1aa1
Showing
2 changed files
with
45 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
name: Check buddy | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Cache Cargo registry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry | ||
restore-keys: | | ||
${{ runner.os }}-cargo-registry | ||
- name: Cache Cargo index | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index | ||
restore-keys: | | ||
${{ runner.os }}-cargo-index | ||
- name: Test | ||
run: cargo test --workspace | ||
|
||
- name: Build the project | ||
run: cargo build --release | ||
|
||
- name: Publish to crates.io | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
run: cargo publish |
This file was deleted.
Oops, something went wrong.