Skip to content

Commit 6a004e0

Browse files
committed
merge from feature/3.3
2 parents 11f6c96 + f604811 commit 6a004e0

139 files changed

Lines changed: 20522 additions & 1164 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-native-nuget.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
on:
33
push:
44
branches:
5-
- master
5+
- feature/3.3
66
paths:
77
- .github/workflows/build-native-nuget.yml
88
workflow_dispatch:
@@ -11,48 +11,50 @@ permissions:
1111
packages: write
1212

1313
env:
14-
PADDLE_VERSION: "3.3.0"
14+
PADDLE_VERSION: "3.3.1"
1515

1616
jobs:
1717
build-all:
1818
runs-on: ubuntu-22.04
1919
strategy:
2020
matrix:
2121
include:
22-
- { title: win64.mkl, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_mkldnn }
23-
- { title: win64.openblas, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_openblas }
24-
- { title: win64.openblas-noavx, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_openblas_noavx }
25-
- { title: win64.cu129_cudnn910_sm61, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_cu129_cudnn910_sm61 }
26-
- { title: win64.cu129_cudnn910_sm75, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_cu129_cudnn910_sm75 }
27-
- { title: win64.cu129_cudnn910_sm86, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_cu129_cudnn910_sm86 }
28-
- { title: win64.cu129_cudnn910_sm89, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_cu129_cudnn910_sm89 }
29-
- { title: win64.cu129_cudnn910_sm120, rid: win-x64, action: paddle-build.yml, artifact: windows-2022_c_cu129_cudnn910_sm120 }
22+
- { title: win64.mkl, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_mkldnn }
23+
- { title: win64.openblas, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_openblas }
24+
- { title: win64.openblas-noavx, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_openblas_noavx }
25+
- { title: win64.cu118_cudnn89_sm61, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu118_cudnn89_sm61 }
26+
- { title: win64.cu118_cudnn89_sm75, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu118_cudnn89_sm75 }
27+
- { title: win64.cu118_cudnn89_sm86, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu118_cudnn89_sm86 }
28+
- { title: win64.cu118_cudnn89_sm89, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu118_cudnn89_sm89 }
29+
- { title: win64.cu129_cudnn910_sm61, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu129_cudnn910_sm61 }
30+
- { title: win64.cu129_cudnn910_sm75, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu129_cudnn910_sm75 }
31+
- { title: win64.cu129_cudnn910_sm86, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu129_cudnn910_sm86 }
32+
- { title: win64.cu129_cudnn910_sm89, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu129_cudnn910_sm89 }
33+
- { title: win64.cu129_cudnn910_sm120, rid: win-x64, action: paddle-build.yml, artifact: windows-2025_c_cu129_cudnn910_sm120 }
3034
- { title: linux-x64.openblas, rid: linux-x64, action: paddle-build.yml, artifact: ubuntu-22.04_c_openblas }
3135
- { title: linux-x64.mkl, rid: linux-x64, action: paddle-build.yml, artifact: ubuntu-22.04_c_mkldnn }
3236
- { title: linux-x64, rid: linux-x64, action: paddle-build.yml, artifact: ubuntu-22.04_c_openvino }
3337
- { title: linux-arm64, rid: linux-arm64, action: paddle-build.yml, artifact: ubuntu-22.04-arm_c_openblas }
38+
- { title: osx-x64, rid: osx-x64, action: paddle-build.yml, artifact: macos-15-intel_c_openblas }
3439
- { title: osx-arm64, rid: osx-arm64, action: paddle-build.yml, artifact: macos-15_c_openblas }
3540

3641

3742
steps:
3843
- name: Download Artifacts
3944
env:
40-
# NOTE: downloading artifacts from a different repo may require a PAT.
41-
# If `github.token` can't access the upstream repo artifacts, create a secret `PADDLE_GH_TOKEN`.
4245
GH_TOKEN: ${{ github.token }}
4346
run: |
44-
UPSTREAM_REPO="sdcb/Paddle"
45-
UPSTREAM_WORKFLOW="build.yml"
4647
echo "arch=$(echo '${{ matrix.rid }}' | awk -F'-' '{print $NF}')" >> $GITHUB_ENV
47-
echo "Fetching latest successful $UPSTREAM_WORKFLOW run of repo $UPSTREAM_REPO (all branches)"
48-
RUN_ID=$(gh run list -R "$UPSTREAM_REPO" \
49-
--workflow="$UPSTREAM_WORKFLOW" \
48+
echo "Fetching latest successful ${{ matrix.action }} run of branch ${{ github.ref_name }}"
49+
RUN_ID=$(gh run list -R ${{ github.repository }} \
50+
--workflow=${{ matrix.action }} \
51+
--branch=${{ github.ref_name }} \
5052
--status=success --limit=1 \
5153
--json databaseId | jq -r '.[0].databaseId')
5254
echo "Run id = $RUN_ID"
5355
5456
echo "Download artifact ${{ matrix.artifact }}"
55-
gh run download -R "$UPSTREAM_REPO" "$RUN_ID" --name "${{ matrix.artifact }}" --dir paddle_inference_c
57+
gh run download -R ${{ github.repository }} $RUN_ID --name ${{ matrix.artifact }} --dir paddle_inference_c
5658
5759
echo "::group::Artifact tree"
5860
ls -lR paddle_inference_c
@@ -196,12 +198,16 @@ jobs:
196198
echo NUPKG_PATH="${{ github.workspace }}/nupkgs/${PKG_ID}.${{ env.PADDLE_VERSION }}.${{ github.run_number }}.nupkg" >> $GITHUB_ENV
197199
198200
- name: Upload nupkg artifact
199-
uses: actions/upload-artifact@v4
201+
uses: actions/upload-artifact@v7
200202
with:
201203
name: nuget-${{ matrix.title }}
202204
path: ${{ env.NUPKG_PATH }}
203205
if-no-files-found: error
204206

205207
- name: Push nupkg to Github Packages
206208
run: |
207-
dotnet nuget push ${{ env.NUPKG_PATH }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
209+
dotnet nuget push ${{ env.NUPKG_PATH }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
210+
211+
- name: Push nupkg to ProGet
212+
run: |
213+
dotnet nuget push ${{ env.NUPKG_PATH }} --source "https://proget.starworks.cc:88/nuget/test/v3/index.json" --api-key "${{ secrets.PROGET_API_KEY }}" --skip-duplicate --timeout 21600

.github/workflows/main.yml

Lines changed: 19 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,35 @@
11
name: main
22
on:
33
push:
4-
branches: [master]
5-
paths: [src/**, tests/**, .github/workflows/main.yml]
4+
branches:
5+
- master
6+
- feature/3.3
7+
paths:
8+
- src/**
9+
- tests/**
10+
- .github/workflows/main.yml
611
workflow_dispatch:
7-
8-
env:
9-
TEST_PROJECTS: "Sdcb.PaddleInference.Tests \
10-
Sdcb.PaddleNLP.Lac.Tests \
11-
Sdcb.PaddleOCR.Tests \
12-
Sdcb.RotationDetector.Tests"
13-
12+
1413
jobs:
15-
build:
16-
runs-on: macos-15
14+
run:
15+
runs-on: ${{ matrix.runs-on }}
16+
strategy:
17+
matrix:
18+
runs-on: [windows-2022, ubuntu-22.04, ubuntu-22.04-arm, macos-15]
19+
# runs-on: [windows-2022, ubuntu-22.04, ubuntu-22.04-arm, macos-15, macos-15-intel]
20+
fail-fast: false
1721
steps:
18-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
1923
- name: Setup NuGet Source
2024
run: |
2125
dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --name github --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
22-
dotnet nuget list source
26+
dotnet nuget list source
2327
2428
- name: Build code
2529
run: dotnet build -c Debug -p:Optimize=true
2630

27-
- name: Create test artifacts
28-
run: |
29-
for proj in ${{ env.TEST_PROJECTS }}; do
30-
echo "::group::Create artifacts for $proj"
31-
mkdir -p test-artifacts/$proj
32-
mv tests/$proj/bin/Debug/net10.0/* test-artifacts/$proj/
33-
echo "::endgroup::"
34-
done
35-
36-
- name: Compress test artifacts
37-
run: |
38-
7z a -t7z -mx=1 -ms=on -mmt=on test-artifacts.7z test-artifacts
39-
40-
- name: Upload artifacts
41-
uses: actions/upload-artifact@v4
42-
with:
43-
name: test-artifacts
44-
compression-level: 0
45-
path: test-artifacts.7z
46-
47-
run:
48-
runs-on: ${{ matrix.os }}
49-
strategy:
50-
fail-fast: false
51-
matrix:
52-
os: [windows-2022, windows-2025,
53-
ubuntu-22.04, ubuntu-24.04,
54-
ubuntu-22.04-arm, ubuntu-24.04-arm,
55-
macos-14, macos-15]
56-
needs: build
57-
steps:
58-
- uses: actions/download-artifact@v4
59-
with:
60-
name: test-artifacts
61-
62-
- name: Extract test artifacts
63-
shell: bash
64-
run: |
65-
7z x test-artifacts.7z
66-
ls -lR test-artifacts
67-
6831
- name: Test
6932
shell: bash
7033
run: |
71-
for proj in ${{ env.TEST_PROJECTS }}; do
72-
echo "::group::Run $proj"
73-
dotnet test --verbosity detailed ./test-artifacts/$proj/$proj.dll
74-
echo "::endgroup::"
75-
done
34+
dotnet test -c Debug --no-build --verbosity normal -p:Optimize=true --filter 'Category!=WindowsOnly'
35+
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Debug --no-build --verbosity normal --filter 'FullyQualifiedName~OnlineModelsTest'

0 commit comments

Comments
 (0)