mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
python ci
This commit is contained in:
3
.github/actions/job-setup/action.yml
vendored
3
.github/actions/job-setup/action.yml
vendored
@@ -13,9 +13,6 @@ runs:
|
|||||||
- name: Print dotnet version
|
- name: Print dotnet version
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: dotnet --info
|
run: dotnet --info
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Install NBGV CLI
|
- name: Install NBGV CLI
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: dotnet tool update -g nbgv
|
run: dotnet tool update -g nbgv
|
||||||
|
|||||||
16
.github/workflows/build-packages.yml
vendored
16
.github/workflows/build-packages.yml
vendored
@@ -6,24 +6,10 @@ jobs:
|
|||||||
package:
|
package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: dotnet/nbgv@master
|
- uses: ./.github/actions/job-setup
|
||||||
with:
|
|
||||||
setAllVars: true
|
|
||||||
- name: Update Version
|
|
||||||
shell: pwsh
|
|
||||||
run: ./.github/set-nbgv-version.ps1
|
|
||||||
- name: Download Rust Artifacts
|
- name: Download Rust Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
25
.github/workflows/build-python.yml
vendored
25
.github/workflows/build-python.yml
vendored
@@ -3,7 +3,7 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-python-linux:
|
linux:
|
||||||
runs-on: ${{ matrix.platform.runner }}
|
runs-on: ${{ matrix.platform.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -21,6 +21,9 @@ jobs:
|
|||||||
- runner: ubuntu-22.04
|
- runner: ubuntu-22.04
|
||||||
target: ppc64le
|
target: ppc64le
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -47,7 +50,7 @@ jobs:
|
|||||||
name: wheels-linux-${{ matrix.platform.target }}
|
name: wheels-linux-${{ matrix.platform.target }}
|
||||||
path: src/lib-python/dist
|
path: src/lib-python/dist
|
||||||
|
|
||||||
build-python-musllinux:
|
musllinux:
|
||||||
runs-on: ${{ matrix.platform.runner }}
|
runs-on: ${{ matrix.platform.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -61,6 +64,9 @@ jobs:
|
|||||||
- runner: ubuntu-22.04
|
- runner: ubuntu-22.04
|
||||||
target: armv7
|
target: armv7
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -87,7 +93,7 @@ jobs:
|
|||||||
name: wheels-musllinux-${{ matrix.platform.target }}
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
||||||
path: src/lib-python/dist
|
path: src/lib-python/dist
|
||||||
|
|
||||||
build-python-windows:
|
windows:
|
||||||
runs-on: ${{ matrix.platform.runner }}
|
runs-on: ${{ matrix.platform.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -97,6 +103,9 @@ jobs:
|
|||||||
- runner: windows-latest
|
- runner: windows-latest
|
||||||
target: x86
|
target: x86
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -122,7 +131,7 @@ jobs:
|
|||||||
name: wheels-windows-${{ matrix.platform.target }}
|
name: wheels-windows-${{ matrix.platform.target }}
|
||||||
path: src/lib-python/dist
|
path: src/lib-python/dist
|
||||||
|
|
||||||
build-python-macos:
|
macos:
|
||||||
runs-on: ${{ matrix.platform.runner }}
|
runs-on: ${{ matrix.platform.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -132,6 +141,9 @@ jobs:
|
|||||||
- runner: macos-14
|
- runner: macos-14
|
||||||
target: aarch64
|
target: aarch64
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -156,9 +168,12 @@ jobs:
|
|||||||
name: wheels-macos-${{ matrix.platform.target }}
|
name: wheels-macos-${{ matrix.platform.target }}
|
||||||
path: src/lib-python/dist
|
path: src/lib-python/dist
|
||||||
|
|
||||||
build-python-sdist:
|
sdist:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- name: Build sdist
|
- name: Build sdist
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
|
|||||||
15
.github/workflows/build-rust.yml
vendored
15
.github/workflows/build-rust.yml
vendored
@@ -3,11 +3,14 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-rust-windows:
|
windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: -C target-feature=+crt-static
|
RUSTFLAGS: -C target-feature=+crt-static
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
@@ -60,9 +63,12 @@ jobs:
|
|||||||
# uses: andymckay/cancel-action@0.5
|
# uses: andymckay/cancel-action@0.5
|
||||||
# if: ${{ failure() }}
|
# if: ${{ failure() }}
|
||||||
|
|
||||||
build-rust-linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -119,9 +125,12 @@ jobs:
|
|||||||
uses: andymckay/cancel-action@0.5
|
uses: andymckay/cancel-action@0.5
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
|
||||||
build-rust-macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: ./.github/actions/job-setup
|
- uses: ./.github/actions/job-setup
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
14
.github/workflows/build-tests.yml
vendored
14
.github/workflows/build-tests.yml
vendored
@@ -55,18 +55,10 @@ jobs:
|
|||||||
VELOPACK_B2_TEST_TOKEN: ${{ secrets.VELOPACK_B2_TEST_TOKEN }}
|
VELOPACK_B2_TEST_TOKEN: ${{ secrets.VELOPACK_B2_TEST_TOKEN }}
|
||||||
VELOPACK_AZ_TEST_TOKEN: ${{ secrets.VELOPACK_AZ_TEST_TOKEN }}
|
VELOPACK_AZ_TEST_TOKEN: ${{ secrets.VELOPACK_AZ_TEST_TOKEN }}
|
||||||
steps:
|
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
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- uses: ./.github/actions/job-setup
|
||||||
- name: Install FUSE
|
- name: Install FUSE
|
||||||
run: |
|
run: |
|
||||||
sudo add-apt-repository universe
|
sudo add-apt-repository universe
|
||||||
@@ -80,7 +72,7 @@ jobs:
|
|||||||
run: dotnet tool install -g dotnet-coverage
|
run: dotnet tool install -g dotnet-coverage
|
||||||
- name: Build .NET
|
- name: Build .NET
|
||||||
run: dotnet build -c Release
|
run: dotnet build -c Release
|
||||||
- uses: caesay/wait-artifact-action@494939e840383463b1686ce3624a8aab059c2c8b
|
- uses: ./.github/actions/wait-artifact
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
max_wait_seconds: 900
|
max_wait_seconds: 900
|
||||||
@@ -114,7 +106,7 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
directory: ./test
|
directory: ./test
|
||||||
- uses: caesay/wait-artifact-action@494939e840383463b1686ce3624a8aab059c2c8b
|
- uses: ./.github/actions/wait-artifact
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }}
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user