99 - ' **'
1010
1111jobs :
12- headers :
13- if : false
14- name : Headers
15- runs-on : ubuntu-latest
16- steps :
17- - name : Checkout
18- uses : actions/checkout@v4
19- with :
20- submodules : recursive
21- fetch-depth : 0
22- persist-credentials : true
23- clean : false
24-
25- - name : Sync Skia dependencies
26- run : |
27- export PATH="${GITHUB_WORKSPACE}/depot_tools:${PATH}"
28- cd skia
29- python3 tools/git-sync-deps
30-
31- - name : Build headers
32- run : python3 scripts/build.py headers
33-
34- - name : Upload headers
35- uses : actions/upload-artifact@v4
36- with :
37- name : headers
38- path : artifacts/headers
39-
4012 windows :
4113 name : Windows
4214 runs-on : windows-latest
7143 name : windows-all
7244 path : artifacts/*
7345
74- linux-all :
46+ linux :
7547 name : Linux (all)
7648 runs-on : ubuntu-latest
7749 steps :
@@ -97,17 +69,18 @@ jobs:
9769 ./update_depot_tools
9870 cd ../skia
9971 python3 tools/git-sync-deps
100-
72+ - name : Extract headers
73+ run : python3 scripts/build.py headers
10174 - name : Build (all arches)
10275 env :
10376 CLANG_BUILDER_IMAGE : ghcr.io/avaloniaui/clang-cross-builder:latest
104- run : scripts/build-linux.sh all
77+ run : scripts/build-linux.sh all
10578
10679 - name : Upload artifacts
10780 uses : actions/upload-artifact@v4
10881 with :
10982 name : linux-all
110- path : artifacts/linux_ *
83+ path : artifacts/*
11184
11285 macos :
11386 name : macOS
@@ -138,3 +111,32 @@ jobs:
138111 with :
139112 name : macos-all
140113 path : artifacts/*
114+
115+ create-release :
116+ name : Create GitHub Release
117+ runs-on : ubuntu-latest
118+ needs : [linux, windows, macos]
119+ if : github.event_name == 'push'
120+ permissions :
121+ contents : write
122+
123+ steps :
124+ - name : Checkout code
125+ uses : actions/checkout@v4
126+
127+ - name : Download all artifacts
128+ uses : actions/download-artifact@v4
129+ with :
130+ path : skia_sdk
131+
132+ - name : Generate release id
133+ run : ./genrelease.sh
134+ - name : Create Release
135+ uses : softprops/action-gh-release@v1
136+ with :
137+ tag_name : ${{ env.RELEASE_ID }}
138+ name : ${{ env.RELEASE_ID }}
139+ draft : false
140+ body_path : ./release.txt
141+ prerelease : false
142+ files : release/*
0 commit comments