-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (51 loc) · 2.14 KB
/
test-artifacts.yml
File metadata and controls
54 lines (51 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test Artifacts
permissions:
contents: read
statuses: read
pull-requests: read
actions: read
checks: write
on:
workflow_dispatch:
jobs:
create-artifact:
name: Add ${{ matrix.configuration['human_readable_platform'] }} to artifact
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
configuration:
- destination: generic/platform=iOS
human_readable_platform: 'iphoneos'
- destination: platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro
human_readable_platform: 'iphonesimulator'
- destination: generic/platform=OS X
human_readable_platform: 'macosx'
- destination: platform=macOS,variant=Mac Catalyst,arch=x86_64
human_readable_platform: 'catalyst'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Xcarchive emulation
run: |
mkdir -p ./bindings/bin/release/${{ matrix.configuration['human_readable_platform'] }}
touch ./bindings/bin/release/${{ matrix.configuration['human_readable_platform'] }}/${{ matrix.configuration['human_readable_platform'] }}.xcarchive
- name: Upload emulated xcarchive
uses: actions/upload-artifact@v4
with:
name: uploaded-artifact-name
path: ./bindings/**/bin/release/${{ matrix.configuration['human_readable_platform'] }}/${{ matrix.configuration['human_readable_platform'] }}.xcarchive
download-artifact:
name: Download artifact
runs-on: macos-latest
needs: [ create-artifact ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download emulated xcarchives
uses: actions/download-artifact@v3
with:
path: ./downloaded-artifact-name
- name: Preview download result
run: |
ls -ll -R