Skip to content

Commit 76dcb16

Browse files
committed
ci: Add .tar.gz step to doccarchive upload & download
GitHub hates weird files names.
1 parent a8679f9 commit 76dcb16

File tree

2 files changed

+65
-7
lines changed

2 files changed

+65
-7
lines changed

.github/actions/compile-docs/action.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ runs:
3838
shell: bash
3939
env:
4040
TARGET: ${{ inputs.target }}
41+
4142
- name: Compile documentation (with xcodebuild)
4243
if: ${{ inputs.xcodebuild == 'true' }} # Compare to constant to treat empty input as false
4344
run: |
@@ -56,8 +57,17 @@ runs:
5657
env:
5758
TARGET: ${{ inputs.target }}
5859
DEVICE_TYPE: ${{ inputs.xcodebuild-device-type }}
59-
- uses: actions/upload-artifact@v4
60+
61+
- name: Compress DocC archive
62+
uses: a7ul/[email protected]
63+
with:
64+
command: c
65+
files: ./${{ inputs.target }}.doccarchive
66+
outPath: ${{ inputs.target }}.doccarchive.tar.gz
67+
68+
- name: Upload DocC archive
69+
uses: actions/upload-artifact@v4
6070
if: ${{ inputs.upload == 'true' }} # Compare to constant to treat empty input as false
6171
with:
62-
name: ${{ inputs.target }}.doccarchive
63-
path: ${{ inputs.target }}.doccarchive
72+
name: ${{ inputs.target }}.doccarchive.tar.gz
73+
path: ${{ inputs.target }}.doccarchive.tar.gz

.github/workflows/build-test-and-docs.yml

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- name: Force Xcode 15.4
1717
run: sudo xcode-select -switch /Applications/Xcode_15.4.app
1818

19+
- name: Swift version
20+
run: swift --version
21+
1922
- uses: actions/checkout@v3
2023

2124
- name: Install Dependencies
@@ -63,6 +66,9 @@ jobs:
6366
- name: Force Xcode 15.4
6467
run: sudo xcode-select -switch /Applications/Xcode_15.4.app
6568

69+
- name: Swift version
70+
run: swift --version
71+
6672
- name: Install xcbeautify
6773
run: brew install xcbeautify
6874

@@ -133,6 +139,9 @@ jobs:
133139
branch: swift-6.1-release
134140
tag: 6.1-RELEASE
135141

142+
- name: Swift version
143+
run: swift --version
144+
136145
- name: Compute vcpkg Triplet
137146
id: triplet
138147
uses: ASzc/change-string-case-action@v5
@@ -182,6 +191,9 @@ jobs:
182191
runs-on: ${{ matrix.os }}
183192

184193
steps:
194+
- name: Swift version
195+
run: swift --version
196+
185197
- uses: actions/checkout@v3
186198

187199
- name: Install Dependencies
@@ -248,22 +260,57 @@ jobs:
248260
- name: Download AppKitBackend.doccarchive
249261
uses: actions/download-artifact@v4
250262
with:
251-
name: AppKitBackend.doccarchive
263+
name: AppKitBackend.doccarchive.tar.gz
264+
265+
- name: Download UIKitBackend.doccarchive
266+
uses: actions/download-artifact@v4
267+
with:
268+
name: UIKitBackend.doccarchive.tar.gz
252269

253270
- name: Download GtkBackend.doccarchive
254271
uses: actions/download-artifact@v4
255272
with:
256-
name: GtkBackend.doccarchive
273+
name: GtkBackend.doccarchive.tar.gz
257274

258275
- name: Download Gtk3Backend.doccarchive
259276
uses: actions/download-artifact@v4
260277
with:
261-
name: Gtk3Backend.doccarchive
278+
name: Gtk3Backend.doccarchive.tar.gz
262279

263280
- name: Download WinUIBackend.doccarchive
264281
uses: actions/download-artifact@v4
265282
with:
266-
name: WinUIBackend.doccarchive
283+
name: WinUIBackend.doccarchive.tar.gz
284+
285+
- name: Extract AppKitBackend.doccarchive.tar.gz
286+
uses: a7ul/[email protected]
287+
with:
288+
command: x
289+
files: ./AppKitBackend.doccarchive.tar.gz
290+
291+
- name: Extract UIKitBackend.doccarchive.tar.gz
292+
uses: a7ul/[email protected]
293+
with:
294+
command: x
295+
files: ./UIKitBackend.doccarchive.tar.gz
296+
297+
- name: Extract GtkBackend.doccarchive.tar.gz
298+
uses: a7ul/[email protected]
299+
with:
300+
command: x
301+
files: ./GtkBackend.doccarchive.tar.gz
302+
303+
- name: Extract Gtk3Backend.doccarchive.tar.gz
304+
uses: a7ul/[email protected]
305+
with:
306+
command: x
307+
files: ./Gtk3Backend.doccarchive.tar.gz
308+
309+
- name: Extract WinUIBackend.doccarchive.tar.gz
310+
uses: a7ul/[email protected]
311+
with:
312+
command: x
313+
files: ./WinUIBackend.doccarchive.tar.gz
267314

268315
- name: Merge DocC archives
269316
run: |
@@ -273,6 +320,7 @@ jobs:
273320
UIKitBackend.doccarchive \
274321
GtkBackend.doccarchive \
275322
Gtk3Backend.doccarchive \
323+
WinUIBackend.doccarchive \
276324
--output-path gh-pages/docs
277325
278326
- name: Update docs if changed

0 commit comments

Comments
 (0)