Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 7, 2024
0 parents commit d179008
Show file tree
Hide file tree
Showing 14 changed files with 2,831 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on: [ push, pull_request ]
jobs:
test:
strategy:
matrix:
include:
- { name: "Rust stable", rust: stable, cargo_args: "" }
- { name: "Rust nightly", rust: nightly, cargo_args: "" }
- { name: "Rust nightly, release", rust: nightly, cargo_args: "--release" }
fail-fast: false
runs-on: ubuntu-latest
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: cargo-${{ matrix.rust }}-${{ matrix.cargo_args }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
cargo-${{ matrix.rust }}-${{ matrix.cargo_args }}-
cargo-${{ matrix.rust }}-
- name: Build
run: cargo build ${{ matrix.cargo_args }}
env:
RUSTFLAGS: -Dwarnings
- name: Test
run: cargo test ${{ matrix.cargo_args }}
- name: Format check
run: cargo fmt --check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit d179008

Please sign in to comment.