Skip to content

Commit

Permalink
Introduce workflow for publishing blazesym-c
Browse files Browse the repository at this point in the history
This change introduces a workflow for publishing the blazesym-c crate.
For now it only covers publishing, not creating any GitHub releases or
Git tags. These may or may not come later, as needed.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o authored and danielocfb committed Nov 21, 2023
1 parent 40f417b commit a1a93e7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish-capi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish blazesym-c

on:
workflow_dispatch:

jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
publish:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Publish
run: cargo publish --package blazesym-c --token "${CARGO_REGISTRY_TOKEN}"
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "blazesym-c"
version = "0.0.0"
edition = "2021"
rust-version = "1.64"
rust-version = "1.65"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit a1a93e7

Please sign in to comment.