From b330ff910d4925a5a420dd4b71c7db3792327319 Mon Sep 17 00:00:00 2001 From: nulano Date: Wed, 24 Aug 2022 22:04:43 +0200 Subject: [PATCH] upload fribidi.dll to GHA --- .github/workflows/test-windows.yml | 12 +++++++++++- winbuild/build_prepare.py | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index b9accfdf9a5..d8a1f23febb 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -181,16 +181,26 @@ jobs: id: wheel if: "github.event_name != 'pull_request'" run: | + mkdir fribidi\${{ matrix.architecture }} + copy winbuild\build\bin\fribidi* fribidi\${{ matrix.architecture }} for /f "tokens=3 delims=/" %%a in ("${{ github.ref }}") do echo ::set-output name=dist::dist-%%a winbuild\\build\\build_pillow.cmd --disable-imagequant bdist_wheel shell: cmd - - uses: actions/upload-artifact@v3 + - name: Upload wheel + uses: actions/upload-artifact@v3 if: "github.event_name != 'pull_request'" with: name: ${{ steps.wheel.outputs.dist }} path: dist\*.whl + - name: Upload fribidi.dll + if: "github.event_name != 'pull_request' && matrix.python-version == 3.10" + uses: actions/upload-artifact@v3 + with: + name: fribidi + path: fribidi\* + success: permissions: contents: none diff --git a/winbuild/build_prepare.py b/winbuild/build_prepare.py index 94e5dd87114..567ca4f7eb0 100644 --- a/winbuild/build_prepare.py +++ b/winbuild/build_prepare.py @@ -297,6 +297,7 @@ def cmd_msbuild( "filename": "fribidi-1.0.12.zip", "dir": "fribidi-1.0.12", "build": [ + cmd_copy(r"COPYING", r"{bin_dir}\fribidi-1.0.12-COPYING"), cmd_copy(r"{winbuild_dir}\fribidi.cmake", r"CMakeLists.txt"), cmd_cmake(), cmd_nmake(target="clean"),