diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..549d6ad --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,58 @@ +name: Check + +on: + push: + branches: [ "next" ] + pull_request: + branches: [ "next" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + debug-build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + + - name: Debug build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + + release-build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + + - name: Release build + run: cargo build -r --features skyrim_ae,fallout_4 + + build-script: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Install latest nightly + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + components: rustfmt, clippy + + - name: Run build script + run: python ./pack.py