From fdd84dc4f83cb1f804b85f7b348c471040838dae Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Fri, 24 Jan 2025 09:31:25 +0000 Subject: [PATCH] chore: add ci tests to ci --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ae7e940..a018018d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,31 @@ jobs: cargo fmt --check ' - name: typos - run: nix develop -i -L .#nightly --command typos + run: nix develop -i -L .#nightly --command typos + + examples: + name: "Run examples" + runs-on: ubuntu-latest + strategy: + matrix: + build-args: + [ + mint-token, + p2pk, + proof-selection, + wallet + ] + steps: + - name: checkout + uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v11 + - name: Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v6 + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + - name: Run example + run: nix develop -i -L .#stable --command cargo r --example ${{ matrix.build-args }} clippy: name: "Stable build, clippy and test"