Skip to content

Commit 523e31a

Browse files
committed
add Windows builds to GitHub Actions
Add Windows x86 and x64 builds to GitHub Actions workflow, replacing AppVeyor for Windows platform builds.
1 parent b947415 commit 523e31a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,27 @@ jobs:
5757
with:
5858
name: libskia-linux-${{ matrix.arch }}
5959
path: dist/*.zip
60+
build-windows:
61+
runs-on: windows-latest
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
arch: [x86, x64]
66+
steps:
67+
- uses: actions/checkout@v4
68+
with:
69+
submodules: recursive
70+
- uses: actions/setup-python@v5
71+
with:
72+
python-version: "3.10"
73+
- name: Build library
74+
run: |
75+
# Python 3.10+ doesn't create python3.exe symlink automatically on Windows
76+
# but skia build expects it, so we create it
77+
New-Item -ItemType SymbolicLink -Path "$env:pythonLocation\python3.exe" -Target "$env:pythonLocation\python.exe" -ErrorAction SilentlyContinue
78+
python3 build_skia.py --target-cpu ${{ matrix.arch }} --shared-lib --archive-file dist\libskia-win-${{ matrix.arch }}.zip
79+
shell: pwsh
80+
- uses: actions/upload-artifact@v4
81+
with:
82+
name: libskia-windows-${{ matrix.arch }}
83+
path: dist/*.zip

0 commit comments

Comments
 (0)