This commit is contained in:
Robin Appelman 2023-12-18 20:26:41 +01:00
commit 9fff536cc3
4 changed files with 69 additions and 2 deletions

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

@ -0,0 +1,64 @@
name: "CI"
on:
pull_request:
push:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: icewind1991/attic-action@v1
with:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#check
clippy:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: icewind1991/attic-action@v1
with:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#clippy
test:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: icewind1991/attic-action@v1
with:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#test
semver:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
msrv:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: icewind1991/attic-action@v1
with:
name: ci
instance: https://cache.icewind.me
authToken: '${{ secrets.ATTIC_TOKEN }}'
- run: nix build .#msrv

1
Cargo.lock generated
View file

@ -606,6 +606,7 @@ checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
[[package]] [[package]]
name = "vdf-reader" name = "vdf-reader"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/icewind1991/vdf-reader#8d207944b545c05e9491f52659f6ded8dbfc31c7"
dependencies = [ dependencies = [
"logos", "logos",
"miette", "miette",

View file

@ -2,11 +2,13 @@
name = "vmt-parser" name = "vmt-parser"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
rust-version = "1.65.0"
[dependencies] [dependencies]
thiserror = "1.0.50" thiserror = "1.0.50"
miette = "5.10.0" miette = "5.10.0"
vdf-reader = { version = "0.1", path = "../vdf-reader" } #vdf-reader = { version = "0.1", path = "../vdf-reader" }
vdf-reader = { version = "0.1", git = "https://github.com/icewind1991/vdf-reader" }
serde = { version = "1.0.193", features = ["derive"] } serde = { version = "1.0.193", features = ["derive"] }
serde_repr = "0.1.17" serde_repr = "0.1.17"

View file

@ -40,7 +40,7 @@
src = sourceByRegex ./. ["Cargo.*" "(src|derive|benches|tests|examples|koth_bagel.*)(/.*)?"]; src = sourceByRegex ./. ["Cargo.*" "(src|derive|benches|tests|examples|koth_bagel.*)(/.*)?"];
nearskOpt = { nearskOpt = {
pname = "vbsp"; pname = "vmt-parser";
root = src; root = src;
}; };
in rec { in rec {