From 4705edb76b80f3e01f161f114b129d634e6f6d84 Mon Sep 17 00:00:00 2001 From: GingerAvalanche Date: Sat, 30 Jul 2022 05:55:17 -0700 Subject: [PATCH 1/3] Version bump --- Cargo.toml | 2 +- bcml/__version__.py | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 53e0cd86..49def902 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bcml" authors = ["Caleb Smith"] -version = "3.9.22" +version = "3.9.23" edition = "2021" readme = "docs/README.md" diff --git a/bcml/__version__.py b/bcml/__version__.py index fbd612bc..e2d68346 100644 --- a/bcml/__version__.py +++ b/bcml/__version__.py @@ -1,6 +1,6 @@ _MAJOR=3 _MINOR=9 -_PATCH="22" +_PATCH="23" VERSION = f"{_MAJOR}.{_MINOR}.{_PATCH}" USER_VERSION = f"""{_MAJOR}.{_MINOR}.{_PATCH[0:1]} { diff --git a/pyproject.toml b/pyproject.toml index d5629d34..b412b1ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "bcml" -version = "3.9.22" +version = "3.9.23" description = "A mod manager for The Legend of Zelda: Breath of the Wild" author = "NiceneNerd" author_email = "macadamiadaze@gmail.com" diff --git a/setup.py b/setup.py index 753468e5..af1924a1 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="bcml", - version="3.9.22", + version="3.9.23", author="NiceneNerd", author_email="macadamiadaze@gmail.com", description="A mod manager for The Legend of Zelda: Breath of the Wild", From feb510efc1a1c1785377bb1d1930b70b8fe22a5d Mon Sep 17 00:00:00 2001 From: GingerAvalanche Date: Sat, 30 Jul 2022 06:00:22 -0700 Subject: [PATCH 2/3] push/pull-request: Only run Rust actions if Rust code changed --- .github/workflows/push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 24ce1357..c6366fcd 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -3,8 +3,10 @@ name: Check and Maturin on: push: branches: [ master ] + paths: 'src/**' pull_request: branches: [ master ] + paths: 'src/**' env: CARGO_TERM_COLOR: always From 9b15a048c5256ecaa7ed88894667f6bd0420eb2d Mon Sep 17 00:00:00 2001 From: GingerAvalanche Date: Sat, 30 Jul 2022 06:26:00 -0700 Subject: [PATCH 3/3] Better push/pull-request on Rust only method --- .github/workflows/push.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c6366fcd..50207e2b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -3,17 +3,32 @@ name: Check and Maturin on: push: branches: [ master ] - paths: 'src/**' pull_request: branches: [ master ] - paths: 'src/**' env: CARGO_TERM_COLOR: always ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' jobs: + rust_changes: + runs-on: ubuntu-latest + outputs: + rust_src_changed: ${{ steps.filter.outputs.rust_src }} + steps: + - uses: actions/checkout@v2 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + rust_src: + - 'src/**' + - 'bootstrap.sh' + - 'Cargo.toml' + - 'pyproject.toml' check_linux: + needs: rust_changes + if: ${{ needs.rust_changes.outputs.rust_src_changed == 'true' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -36,6 +51,8 @@ jobs: args: --release rust-toolchain: nightly check_win: + needs: rust_changes + if: ${{ needs.rust_changes.outputs.rust_src_changed == 'true' }} runs-on: windows-latest steps: - uses: actions/checkout@v2