diff --git a/.github/workflows/publish_py.yml b/.github/workflows/python.yml similarity index 86% rename from .github/workflows/publish_py.yml rename to .github/workflows/python.yml index b1d7147..c25951d 100644 --- a/.github/workflows/publish_py.yml +++ b/.github/workflows/python.yml @@ -3,16 +3,23 @@ # # maturin generate-ci github # -name: publish_py +name: python on: push: branches: - master - tags: - - '*' + paths: + - '.github/workflows/python.yml' + - 'matcher_rs/**' + - 'matcher_py/**' pull_request: - workflow_dispatch: + branches: + - master + paths: + - '.github/workflows/python.yml' + - 'matcher_rs/**' + - 'matcher_py/**' defaults: run: @@ -51,6 +58,8 @@ jobs: args: --release --out dist sccache: 'true' manylinux: auto + rust-toolchain: nightly + working-directory: matcher_py - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -82,6 +91,8 @@ jobs: args: --release --out dist sccache: 'true' manylinux: musllinux_1_2 + rust-toolchain: nightly + working-directory: matcher_py - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -109,6 +120,8 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist sccache: 'true' + rust-toolchain: nightly + working-directory: matcher_py - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -135,6 +148,8 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist sccache: 'true' + rust-toolchain: nightly + working-directory: matcher_py - name: Upload wheels uses: actions/upload-artifact@v4 with: @@ -150,6 +165,8 @@ jobs: with: command: sdist args: --out dist + rust-toolchain: nightly + working-directory: matcher_py - name: Upload sdist uses: actions/upload-artifact@v4 with: @@ -170,3 +187,5 @@ jobs: with: command: upload args: --non-interactive --skip-existing wheels-*/* + rust-toolchain: nightly + working-directory: matcher_py diff --git a/.github/workflows/ci.yml b/.github/workflows/rust.yml similarity index 76% rename from .github/workflows/ci.yml rename to .github/workflows/rust.yml index 55a05e8..3e5e0a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/rust.yml @@ -1,10 +1,18 @@ -name: ci +name: rust on: push: - branches: [ "master" ] + branches: + - master + paths: + - '.github/workflows/rust.yml' + - 'matcher_rs/**' pull_request: - branches: [ "master" ] + branches: + - master + paths: + - '.github/workflows/rust.yml' + - 'matcher_rs/**' env: CARGO_TERM_COLOR: always diff --git a/build.sh b/ci/build.sh similarity index 100% rename from build.sh rename to ci/build.sh diff --git a/update.sh b/ci/update.sh similarity index 100% rename from update.sh rename to ci/update.sh