From 7b17b924ce4ea049eb0231ab997f6d603e26f899 Mon Sep 17 00:00:00 2001 From: Boring3 <16686147+Nyrest@users.noreply.github.com> Date: Sat, 4 May 2024 11:09:35 +0800 Subject: [PATCH 1/3] Create check.yml --- .github/workflows/check.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..ad4c3c5 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,29 @@ +name: Check + +on: + push: + branches: [ "next" ] + pull_request: + branches: [ "next" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + debug-build-test: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - 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: Run build script + run: python ./pack.py From 04727d0e8e47089b34cf68256030b9a526eec561 Mon Sep 17 00:00:00 2001 From: Boring3 <16686147+Nyrest@users.noreply.github.com> Date: Sat, 4 May 2024 11:11:54 +0800 Subject: [PATCH 2/3] Update check.yml Install rust nightly toolchain --- .github/workflows/check.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ad4c3c5..858c2d1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,6 +15,13 @@ jobs: 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 @@ -25,5 +32,12 @@ jobs: 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 From 84d6f059b48a36ea5e65d6d7d5edd5595756536e Mon Sep 17 00:00:00 2001 From: Boring3 <16686147+Nyrest@users.noreply.github.com> Date: Sat, 4 May 2024 11:17:24 +0800 Subject: [PATCH 3/3] Update check.yml --- .github/workflows/check.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 858c2d1..549d6ad 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -10,7 +10,7 @@ env: CARGO_TERM_COLOR: always jobs: - debug-build-test: + debug-build: runs-on: windows-latest steps: @@ -30,6 +30,21 @@ jobs: 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