forked from hummingbot/hummingbot
-
Notifications
You must be signed in to change notification settings - Fork 0
133 lines (124 loc) · 3.73 KB
/
check_for_updates.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: ci
on:
push:
branches: [master, development, 'development_*']
pull_request:
branches: [master, development, 'development_*']
types: [ready_for_review, opened, synchronize, reopened]
jobs:
run_client:
name: Check if client files changed
outputs:
is_set: ${{ steps.check_files.outputs.is_set }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/*.+(py|pyx|pyd|yml)
- name: Check if client files are modified
id: check_files
if: env.GIT_DIFF
run: |
echo ${{ env.GIT_DIFF }}
echo "is_set=true" >> $GITHUB_OUTPUT
required_tests:
name: Evaluate Success/Failure of Required Tests
if: always()
needs:
- run_client
- build_on_Linux_Primary
- build_on_Linux
- build_on_macOS
- build_on_windows
runs-on: ubuntu-latest
steps:
- name: Validate required successful tests
uses: re-actors/alls-green@release/v1
with:
allowed-failures: build_on_Linux, build_on_macOS, build_on_windows
allowed-skips: build_on_Linux, build_on_macOS, build_on_windows
jobs: ${{ toJson(needs) }}
build_on_Linux_Primary:
name: I/B/T x86 Linux
needs: run_client
uses: ./.github/workflows/install_generic_runner.yml
with:
#should_run: ${{ needs.run_client.outputs.is_set == 'true' }}
should_run: true
env-yml-file: setup/environment-linux.yml
os-matrix: "['x86-ubuntu-latest']"
must-succeed: "['x86-ubuntu-latest']"
shell: 'bash -l {0}'
secrets: inherit
build_on_Linux:
name: I/B/T x86 Linux
needs: run_client
uses: ./.github/workflows/install_generic_runner.yml
with:
should_run: ${{ needs.run_client.outputs.is_set == 'true' }}
env-yml-file: setup/environment-linux.yml
os-matrix: "['x86-ubuntu-20.04']"
shell: 'bash -l {0}'
secrets: inherit
build_on_macOS:
name: I/B/T x86 MacOS
needs: run_client
uses: ./.github/workflows/install_generic_runner.yml
with:
should_run: ${{ needs.run_client.outputs.is_set == 'true' }}
env-yml-file: setup/environment.yml
os-matrix: "['x86-macos-latest']"
shell: 'bash -l {0}'
secrets: inherit
build_on_windows:
name: I/B/T x86 Windows
needs: run_client
uses: ./.github/workflows/install_generic_runner.yml
with:
should_run: ${{ needs.run_client.outputs.is_set == 'true' }}
env-yml-file: setup/environment-win64.yml
os-matrix: "['x86-windows-latest']"
shell: 'bash -l {0}'
secrets: inherit
#
# build_on_ARM:
# name: I/B/T ARM64 MacOS
# needs: run_client
# uses: ./.github/workflows/install_generic_runner.yml
# with:
# should_run: true
# #should_run: ${{ needs.run_client.outputs.is_set == 'true' }}
# env-yml-file: setup/environment.yml
# os-matrix: "['arm64-ubuntu-latest']"
# shell: 'bash -l {0}'
# secrets: inherit
#
# # Custom Flows
# build_on_WSL:
# name: I/B/T x86 WSL
# needs: run_client
# uses: ./.github/workflows/install_x86_wsl.yml
# with:
# should_run: true
# os-matrix: "['Debian']"
# secrets: inherit
#
# build_on_raspi:
# name: I/B/T RasPi
# needs: run_client
# uses: ./.github/workflows/install_raspi_Linux.yml
# with:
# should_run: true
# # should_run: ${{ needs.run_client.outputs.is_set == 'true' }}
# os-matrix: "['zero2_64_raspios']"
# secrets: inherit
# build_on_Rosetta:
# name: I/B/T ARM64 Rosetta
# needs: run_client
# uses: ./.github/workflows/install_arm_linux.yml
# with:
# should_run: true
# env-yml-file: setup/environment.yml
# secrets: inherit