mirror of
https://github.com/kristoferssolo/traxor.git
synced 2026-02-04 06:42:04 +00:00
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
||||
run: cargo fmt --all --check
|
||||
- name: Run Tests
|
||||
run: |
|
||||
cargo nextest run --all-features --all-targets
|
||||
cargo nextest run --locked --all-features --all-targets
|
||||
cargo test --locked --workspace --all-features --doc
|
||||
- name: Check Documentation
|
||||
run: cargo doc --locked --workspace --all-features --document-private-items --no-deps
|
||||
|
||||
53
.github/workflows/publish.yml
vendored
Normal file
53
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
name: Publish
|
||||
on:
|
||||
# Trigger this workflow when a tag is pushed in the format `v1.2.3`.
|
||||
push:
|
||||
tags:
|
||||
# Pattern syntax: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
|
||||
- "v[0-9]+.[0-9]+.[0-9]+*"
|
||||
# Trigger this workflow manually via workflow dispatch.
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version number in the format `v1.2.3`'
|
||||
required: true
|
||||
type: string
|
||||
jobs:
|
||||
audit:
|
||||
name: Audit
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/audit@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
crates_io_publish:
|
||||
name: Publish (crates.io)
|
||||
needs:
|
||||
- audit
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: cargo-release Cache
|
||||
id: cargo_release_cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cargo/bin/cargo-release
|
||||
key: ${{ runner.os }}-cargo-release
|
||||
- run: cargo install cargo-release
|
||||
if: steps.cargo_release_cache.outputs.cache-hit != 'true'
|
||||
- name: cargo login
|
||||
run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
|
||||
- name: "cargo release publish"
|
||||
run: |-
|
||||
cargo release \
|
||||
publish \
|
||||
--workspace \
|
||||
--all-features \
|
||||
--allow-branch HEAD \
|
||||
--no-confirm \
|
||||
--no-verify \
|
||||
--execute
|
||||
Reference in New Issue
Block a user