Skip to content

Commit b488e7c

Browse files
authored
Add Rust binary and CI workflow (#1)
1 parent 4ee262e commit b488e7c

File tree

8 files changed

+531
-0
lines changed

8 files changed

+531
-0
lines changed

.github/workflows/ci.yaml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
jobs:
16+
all:
17+
name: All
18+
19+
strategy:
20+
matrix:
21+
os:
22+
- ubuntu-latest
23+
- macos-latest
24+
25+
runs-on: ${{matrix.os}}
26+
27+
env:
28+
RUSTFLAGS: --deny warnings
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
33+
- name: Install Rust Toolchain Components
34+
uses: actions-rs/toolchain@v1
35+
with:
36+
components: clippy, rustfmt
37+
override: true
38+
toolchain: stable
39+
40+
- uses: Swatinem/rust-cache@v1
41+
42+
- name: Check Lockfile
43+
run: |
44+
cargo update --locked --package bitcoin-atoms
45+
46+
- name: Test
47+
run: cargo test --all
48+
49+
- name: Clippy
50+
run: cargo clippy --all --all-targets
51+
52+
- name: Format
53+
run: cargo fmt --all -- --check
54+
55+
- name: Check for Forbidden Words
56+
if: ${{ matrix.os == 'ubuntu-latest' }}
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install ripgrep
60+
./bin/forbid

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

+297
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "bitcoin-atoms"
3+
description = "Bitcoin atom utilies"
4+
version = "0.0.0"
5+
license = "CC0-1.0"
6+
edition = "2021"
7+
8+
[dependencies]
9+
bitcoincore-rpc = "0.14.0"
10+
dirs = "4.0.0"

0 commit comments

Comments
 (0)