ci: drop targets, bump setup protoc, fix py cwd

This commit is contained in:
əlemi 2024-09-09 17:30:23 +02:00
parent 68d57db212
commit ac3df94cf9
Signed by: alemi
GPG key ID: A4895B84D311642C
3 changed files with 19 additions and 18 deletions

View file

@ -26,7 +26,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- run: cargo build --release --features=lua - run: cargo build --release --features=lua
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -49,7 +49,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- run: cargo build --release --features=lua - run: cargo build --release --features=lua
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -68,7 +68,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- run: cargo build --release --features=lua - run: cargo build --release --features=lua
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -87,7 +87,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- run: cargo build --release --features=lua - run: cargo build --release --features=lua
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:

View file

@ -28,22 +28,19 @@ jobs:
target: aarch64 target: aarch64
- runner: ubuntu-latest - runner: ubuntu-latest
target: armv7 target: armv7
- runner: ubuntu-latest
target: s390x
- runner: ubuntu-latest
target: ppc64le
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
working-directory: dist/py
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
args: --release --out dist/py args: --release --out .
sccache: 'true' sccache: 'true'
manylinux: auto manylinux: auto
- name: Upload wheels - name: Upload wheels
@ -68,15 +65,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
working-directory: dist/py
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
args: --release --out dist/py args: --release --out .
sccache: 'true' sccache: 'true'
manylinux: musllinux_1_2 manylinux: musllinux_1_2
- name: Upload wheels - name: Upload wheels
@ -97,16 +95,17 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
architecture: ${{ matrix.platform.target }} architecture: ${{ matrix.platform.target }}
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
working-directory: dist/py
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
args: --release --out dist/py args: --release --out .
sccache: 'true' sccache: 'true'
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -126,15 +125,16 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: rustup update stable && rustup default stable - run: rustup update stable && rustup default stable
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
working-directory: dist/py
with: with:
target: ${{ matrix.platform.target }} target: ${{ matrix.platform.target }}
args: --release --out dist/py args: --release --out .
sccache: 'true' sccache: 'true'
- name: Upload wheels - name: Upload wheels
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -148,9 +148,10 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build sdist - name: Build sdist
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
working-directory: dist/py
with: with:
command: sdist command: sdist
args: --out dist/py args: --out .
- name: Upload sdist - name: Upload sdist
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View file

@ -30,7 +30,7 @@ jobs:
# - nightly # - nightly
# TODO should re-enable future toolchains so we get warnings on breaking changes # TODO should re-enable future toolchains so we get warnings on breaking changes
steps: steps:
- uses: arduino/setup-protoc@v2 - uses: arduino/setup-protoc@v3
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --features=${{ matrix.features }} - run: cargo build --verbose --features=${{ matrix.features }}