Skip to content

Commit

Permalink
Merge pull request #30 from jprochazk/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
jprochazk authored Jul 2, 2023
2 parents 6d3939f + d8eb286 commit 01b0d7a
Show file tree
Hide file tree
Showing 939 changed files with 36,569 additions and 33,347 deletions.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[alias]
xtask = "run --package xtask --"
x = "run --package xtask --"
hebi = "run --quiet --package hebi-cli --"
77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint-test:
name: Lint + Test
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
toolchain: [stable, nightly]
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy

- name: Cache
uses: Swatinem/rust-cache@v2

- name: Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: Linting
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: xtask
args: test
# miri:
# name: Miri
# runs-on: ubuntu-22.04
# env:
# TOOLCHAIN: nightly
# steps:
# - uses: actions/checkout@v3
#
# - name: Install Rust
# uses: dtolnay/rust-toolchain@v1
# with:
# toolchain: ${{ env.TOOLCHAIN }}
# components: miri, rust-src
#
# - name: Cache
# uses: Swatinem/rust-cache@v2
#
# - name: Run miri tests
# uses: actions-rs/cargo@v1
# with:
# command: xtask
# args: miri test


2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# will have compiled files and executables
debug/
target/
target_ra/

# These are backup files generated by rustfmt
**/*.rs.bk
Expand All @@ -13,6 +14,7 @@ target/
# Profiling and cargo-flamegraph output
perf.data*
*.zst
flamegraph*.svg

# insta
*.snap.new
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"rust-analyzer.cargo.features": []
"rust-analyzer.showUnlinkedFileNotification": false,
"rust-analyzer.check.extraArgs": ["--target-dir=./target_ra"],
"rust-analyzer.cargo.features": ["serde"]
}
Loading

0 comments on commit 01b0d7a

Please sign in to comment.