Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Apr 27, 2024
1 parent d379a50 commit 02f96fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.conf.os }}
name: ${{ matrix.conf.os }}-${{ matrix.conf.target }}-${{ matrix.package.name }}-${{ matrix.python-version }}-${{ matrix.conf.python-architecture }}-${{ matrix.conf.manylinux }}
strategy:
fail-fast: false #${{ !( startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') ) }}
fail-fast: ${{ !( startsWith(github.ref, 'refs/heads/master') || !startsWith(github.ref, 'refs/tags/') ) }}
matrix:
python-version:
- '3.8'
Expand Down Expand Up @@ -151,10 +151,10 @@ jobs:
with:
target: ${{ matrix.conf.target-triple }}

# - uses: Swatinem/rust-cache@v2
# name: Rust Cache
# with:
# prefix-key: ${{ matrix.conf.os }}-${{ matrix.conf.manylinux }}-${{ matrix.conf.target-triple }}-${{ matrix.conf.python-architecture }}-${{ matrix.package.name }}
- uses: Swatinem/rust-cache@v2
name: Rust Cache
with:
prefix-key: ${{ matrix.conf.os }}-${{ matrix.conf.target-triple }}-${{ matrix.package.name }}-${{ matrix.conf.python-architecture }}-${{ matrix.conf.manylinux }}

- name: Setup (Mac)
if: runner.os == 'macOS'
Expand Down Expand Up @@ -326,6 +326,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
if: ${{ ( startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/') ) }}
with:
name: dist
path: dist
Expand Down Expand Up @@ -353,14 +354,14 @@ jobs:

pypi-publish:
name: Upload ${{ matrix.package }} release to PyPI
if: startsWith(github.ref, 'refs/tags/')
strategy:
fail-fast: false
matrix:
package:
- cramjam
- cramjam-cli
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [build-test, build-sdist]
environment:
name: pypi
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ __pycache__/
benchenv/
cramjam-python/_build

Cargo.lock


# Distribution / packaging
.Python
Expand Down

0 comments on commit 02f96fe

Please sign in to comment.