Skip to content

Commit

Permalink
Add Rust binary and CI workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 12, 2021
1 parent 4ee262e commit b488e7c
Show file tree
Hide file tree
Showing 8 changed files with 531 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

defaults:
run:
shell: bash

jobs:
all:
name: All

strategy:
matrix:
os:
- ubuntu-latest
- macos-latest

runs-on: ${{matrix.os}}

env:
RUSTFLAGS: --deny warnings

steps:
- uses: actions/checkout@v2

- name: Install Rust Toolchain Components
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
override: true
toolchain: stable

- uses: Swatinem/rust-cache@v1

- name: Check Lockfile
run: |
cargo update --locked --package bitcoin-atoms
- name: Test
run: cargo test --all

- name: Clippy
run: cargo clippy --all --all-targets

- name: Format
run: cargo fmt --all -- --check

- name: Check for Forbidden Words
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install ripgrep
./bin/forbid
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
297 changes: 297 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "bitcoin-atoms"
description = "Bitcoin atom utilies"
version = "0.0.0"
license = "CC0-1.0"
edition = "2021"

[dependencies]
bitcoincore-rpc = "0.14.0"
dirs = "4.0.0"
Loading

0 comments on commit b488e7c

Please sign in to comment.