Merge Add CI Actions (#31)

This commit is contained in:
Boog900 2023-10-29 00:42:37 +00:00 committed by GitHub
commit 7f5035ece2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 23 deletions

33
.github/workflows/audit.yml vendored Normal file
View file

@ -0,0 +1,33 @@
# This runs `cargo audit` on all dependencies (only if Cargo deps changed)
name: Audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
env:
CARGO_TERM_COLOR: always
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Cache
uses: actions/cache@v3.2.3
with:
path: |
~/.cargo
target
key: audit
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: cargo install cargo-audit
- name: Audit
run: cargo audit

45
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,45 @@
# This [clippys, tests, builds] on [windows, macos, linux]
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
# Show full panics.
RUST_BACKTRACE: "full"
# Increase thread stack size to 8 megabytes.
RUST_MIN_STACK: 8000000
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, macos-11, ubuntu-20.04]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: actions/cache@v3
with:
path: target
key: ${{ matrix.os }}
- name: Clippy
run: cargo clippy
- name: Test
run: cargo test
- name: Build
run: cargo build

View file

@ -1,22 +0,0 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

View file

@ -5,7 +5,7 @@
> An up and coming Rust Monero node. > An up and coming Rust Monero node.
[![Matrix](https://img.shields.io/badge/Matrix-Cuprate-white?logo=matrix&labelColor=grey&logoColor=white)](https://matrix.to/#/#cuprate:monero.social) [![Matrix](https://img.shields.io/badge/Matrix-Cuprate-white?logo=matrix&labelColor=grey&logoColor=white)](https://matrix.to/#/#cuprate:monero.social) [![CI](https://github.com/Cuprate/cuprate/actions/workflows/ci.yml/badge.svg)](https://github.com/Cuprate/cuprate/actions/workflows/ci.yml)
Cuprate will be an alternative Monero node written from the ground up in Rust. It Cuprate will be an alternative Monero node written from the ground up in Rust. It
will be able to independently validate Monero consensus rules providing a layer of will be able to independently validate Monero consensus rules providing a layer of