From 49f3e7dbde0515476b147839f50b085528a47c0a Mon Sep 17 00:00:00 2001 From: taskooh Date: Thu, 11 Jul 2024 21:24:00 +0900 Subject: [PATCH] add werewolf ci --- .github/workflows/rust_ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/rust_ci.yml b/.github/workflows/rust_ci.yml index 583a9ea4..d0412af3 100644 --- a/.github/workflows/rust_ci.yml +++ b/.github/workflows/rust_ci.yml @@ -221,3 +221,34 @@ jobs: - name: Run online binary run: ./run_online.zsh + + run_werewolf_binary: + name: Run Werewolf Binary + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + rustflags: "-A warnings" + + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- + + - name: Run werewolf init + run: ./run_werewolf.zsh init + + - name: Run werewolf night + run: ./run_werewolf.zsh night