From d051ff4d76bfbcfe7b56ab719996522c6142cdd5 Mon Sep 17 00:00:00 2001 From: bekauz Date: Sun, 20 Aug 2023 15:28:08 +0200 Subject: [PATCH] scripts dir --- .github/workflows/basic.yml | 20 +++++++++++++++++++- {stride-covenant => scripts}/optimize.sh | 0 {stride-covenant => scripts}/schema.sh | 0 stride-covenant/justfile | 4 ++-- 4 files changed, 21 insertions(+), 3 deletions(-) rename {stride-covenant => scripts}/optimize.sh (100%) rename {stride-covenant => scripts}/schema.sh (100%) diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 7428a14d..044fac25 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -55,4 +55,22 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --all-targets -- -D warnings \ No newline at end of file + args: --all-targets -- -D warnings + + schema: + name: Schema + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.66.0 + override: true + components: rustfmt, clippy + + - name: Gen schemas + run: ./scripts/schema.sh \ No newline at end of file diff --git a/stride-covenant/optimize.sh b/scripts/optimize.sh similarity index 100% rename from stride-covenant/optimize.sh rename to scripts/optimize.sh diff --git a/stride-covenant/schema.sh b/scripts/schema.sh similarity index 100% rename from stride-covenant/schema.sh rename to scripts/schema.sh diff --git a/stride-covenant/justfile b/stride-covenant/justfile index e5aaa6b0..d9027eaf 100644 --- a/stride-covenant/justfile +++ b/stride-covenant/justfile @@ -4,7 +4,7 @@ build: gen: build gen-schema gen-schema: - ./schema.sh + ./../scripts/schema.sh test: cargo test @@ -13,7 +13,7 @@ lint: cargo +nightly clippy --all-targets -- -D warnings && cargo +nightly fmt --all --check optimize: - ./optimize.sh + ./../scripts/optimize.sh simtest: optimize if [[ $(uname -m) =~ "arm64" ]]; then \