python ci

This commit is contained in:
Caelan Sayler
2025-06-14 15:25:01 +01:00
committed by Caelan
parent 3de616fcc7
commit 5c952c0710
5 changed files with 36 additions and 37 deletions

View File

@@ -6,24 +6,10 @@ jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Print dotnet version
run: dotnet --info
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dotnet/nbgv@master
with:
setAllVars: true
- name: Update Version
shell: pwsh
run: ./.github/set-nbgv-version.ps1
- uses: ./.github/actions/job-setup
- name: Download Rust Artifacts
uses: actions/download-artifact@v4
with:

View File

@@ -3,7 +3,7 @@ on:
workflow_call:
jobs:
build-python-linux:
linux:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
@@ -21,6 +21,9 @@ jobs:
- runner: ubuntu-22.04
target: ppc64le
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- uses: actions/setup-python@v5
with:
@@ -47,7 +50,7 @@ jobs:
name: wheels-linux-${{ matrix.platform.target }}
path: src/lib-python/dist
build-python-musllinux:
musllinux:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
@@ -61,6 +64,9 @@ jobs:
- runner: ubuntu-22.04
target: armv7
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- uses: actions/setup-python@v5
with:
@@ -87,7 +93,7 @@ jobs:
name: wheels-musllinux-${{ matrix.platform.target }}
path: src/lib-python/dist
build-python-windows:
windows:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
@@ -97,6 +103,9 @@ jobs:
- runner: windows-latest
target: x86
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- uses: actions/setup-python@v5
with:
@@ -122,7 +131,7 @@ jobs:
name: wheels-windows-${{ matrix.platform.target }}
path: src/lib-python/dist
build-python-macos:
macos:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
@@ -132,6 +141,9 @@ jobs:
- runner: macos-14
target: aarch64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- uses: actions/setup-python@v5
with:
@@ -156,9 +168,12 @@ jobs:
name: wheels-macos-${{ matrix.platform.target }}
path: src/lib-python/dist
build-python-sdist:
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- name: Build sdist
uses: PyO3/maturin-action@v1

View File

@@ -3,11 +3,14 @@ on:
workflow_call:
jobs:
build-rust-windows:
windows:
runs-on: windows-latest
env:
RUSTFLAGS: -C target-feature=+crt-static
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- uses: Swatinem/rust-cache@v2
with:
@@ -60,9 +63,12 @@ jobs:
# uses: andymckay/cancel-action@0.5
# if: ${{ failure() }}
build-rust-linux:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- name: Install Dependencies
run: |
@@ -119,9 +125,12 @@ jobs:
uses: andymckay/cancel-action@0.5
if: ${{ failure() }}
build-rust-macos:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- uses: Swatinem/rust-cache@v2
with:

View File

@@ -55,18 +55,10 @@ jobs:
VELOPACK_B2_TEST_TOKEN: ${{ secrets.VELOPACK_B2_TEST_TOKEN }}
VELOPACK_AZ_TEST_TOKEN: ${{ secrets.VELOPACK_AZ_TEST_TOKEN }}
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Print dotnet version
run: dotnet --info
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/job-setup
- name: Install FUSE
run: |
sudo add-apt-repository universe
@@ -80,7 +72,7 @@ jobs:
run: dotnet tool install -g dotnet-coverage
- name: Build .NET
run: dotnet build -c Release
- uses: caesay/wait-artifact-action@494939e840383463b1686ce3624a8aab059c2c8b
- uses: ./.github/actions/wait-artifact
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_wait_seconds: 900
@@ -114,7 +106,7 @@ jobs:
uses: codecov/codecov-action@v5
with:
directory: ./test
- uses: caesay/wait-artifact-action@494939e840383463b1686ce3624a8aab059c2c8b
- uses: ./.github/actions/wait-artifact
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}