Skip to content

Commit 85dab72

Browse files
committed
Update package version to 0.0.1 and add GitHub workflows for build and publish
1 parent 0b82896 commit 85dab72

File tree

7 files changed

+189
-459
lines changed

7 files changed

+189
-459
lines changed

.github/FUNDING.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# These are supported funding model platforms
2+
3+
github: [Inferara] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
thanks_dev: # Replace with a single thanks.dev username
15+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
jobs:
11+
build:
12+
name: Build and test
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
toolchain:
17+
- nightly
18+
steps:
19+
- name: Setup Rust
20+
uses: actions/checkout@v4.1.3
21+
- name: Update Rust
22+
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
23+
- name: Install clippy nightly
24+
run: rustup component add clippy-preview
25+
- name: Install Cargo audit
26+
run: cargo install cargo-audit
27+
- name: Build
28+
run: cargo build --verbose
29+
- name: Test
30+
run: cargo test --verbose
31+
- name: Clippy
32+
run: cargo clippy --verbose -- -D warnings
33+
- name: Audit
34+
run: cargo audit

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish crates
2+
on:
3+
workflow_dispatch:
4+
env:
5+
CARGO_TERM_COLOR: always
6+
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Build
13+
run: cargo build --release --verbose
14+
- name: Run tests
15+
run: cargo test --verbose
16+
- name: Publish json-mutex-db
17+
run: cargo publish -p json-mutex-db

0 commit comments

Comments
 (0)