Skip to content

Commit

Permalink
ci(github): Testing GitHub actions with maturin.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Jul 16, 2024
1 parent 7eb2350 commit 4c3c95a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,45 @@ jobs:
toolchain: stable
- run:
cargo test --release --all-features

build_linux:
needs: test_rust
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: x86
- runner: ubuntu-latest
target: aarch64
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: dist
retention-days: 1


#
# build_python_wheels:
# name: Python ${{ matrix.pyver }}@${{ matrix.os }}.whl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
with:
name: pypi
path: dist
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: echo "((A:1,B:2):1,(C:1,(D:3,E:4):2):2);" > test.tree
Expand Down

0 comments on commit 4c3c95a

Please sign in to comment.