This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (72 loc) · 2.6 KB
/
dev.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Dev builder
on:
pull_request:
workflow_dispatch:
inputs:
android:
description: 'Run build on Android'
required: false
default: true
type: boolean
windows:
description: 'Run build on Windows'
required: false
default: false
type: boolean
macos:
description: 'Run build on Windows'
required: false
default: false
type: boolean
run-tests:
description: 'Run tests'
required: false
default: true
type: boolean
jobs:
coverage:
uses: ./.github/workflows/tests.yml
if: ${{ inputs.run-tests }}
android:
uses: ./.github/workflows/dev_android.yml
if: ${{ github.event_name == 'pull_request' || inputs.android }}
with:
# Disable tests since we already run them in coverage
run-tests: ${{ github.event_name == 'pull_request' }}
windows:
uses: ./.github/workflows/dev_windows.yml
if: ${{ github.event_name == 'pull_request' || inputs.windows }}
with:
# We don't have windows-specific tests yet. Run only on PRs
run-tests: ${{ github.event_name == 'pull_request' }}
macos:
uses: ./.github/workflows/dev_macos.yml
if: ${{ github.event_name == 'pull_request' || inputs.macos }}
with:
# We don't have macos-specific tests yet. Run only on PRs
run-tests: ${{ github.event_name == 'pull_request' }}
output:
name: Job Summary
needs: [coverage, android, windows, macos]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Add job summary
run: |
echo "# Development builds :rocket:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo -n "![CodeCov Update](https://img.shields.io/badge/CodeCov_Update-${{ needs.coverage.result }}-" >> $GITHUB_STEP_SUMMARY
if [ "${{ needs.coverage.result }}" == "success" ]; then
echo -n "brightgreen" >> $GITHUB_STEP_SUMMARY
elif [ "${{ needs.coverage.result }}" == "skipped" ]; then
echo -n "lightgrey" >> $GITHUB_STEP_SUMMARY
else
echo -n "red" >> $GITHUB_STEP_SUMMARY
fi
echo ")" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Platform | Status |" >> $GITHUB_STEP_SUMMARY
echo "| -------- | ------ |" >> $GITHUB_STEP_SUMMARY
echo "| Android | ${{ needs.android.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Windows | ${{ needs.windows.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| Mac OS X | ${{ needs.macos.result }} |" >> $GITHUB_STEP_SUMMARY