-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 1010 Bytes
/
test.yaml
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
on:
workflow_dispatch:
inputs:
library:
description: 'Which library to bundle'
required: false
save:
description: 'Save artifacts'
required: false
name: Test creating bundles
jobs:
Build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-11, macos-12 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create bundles
run: |
if [ "${{ github.event.inputs.library }}" ]; then
./${{ github.event.inputs.library }}.sh
else
for f in *.sh; do
STATUS="OK"
./$f > /tmp/outlog 2>&1 || STATUS="FAILED"
echo "::group::Testing $f $STATUS"
cat /tmp/outlog
echo "::endgroup::"
done
fi
- uses: actions/upload-artifact@v3
if: ${{ github.event.inputs.save }}
with:
name: archive
path: archive/*/*.xz