-
Notifications
You must be signed in to change notification settings - Fork 0
194 lines (166 loc) · 4.71 KB
/
buildDaily.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
name: Build Daily
on :
## Comment the entries below you won't be needing
# (and double-check if you repo uses 'main' or 'master')
#push :
# branches:
# - main
#paths:
#- 'xyz/**'
#paths-ignore:
#- '.github/**'
#pull_request:
# branches:
# - main
#paths:
#- 'xyz/**'
#paths-ignore:
#- '.github/**'
schedule :
- cron: '45 6 * * *'
## Uncomment and adapt the following lines to trigger the action upon complete of another
##
#workflow_run:
# workflows:
# - 'main.yml'
# types:
# - completed
workflow_dispatch:
## Uncomment the following lines if you need to provide specific inputs
##
# inputs:
# inputOne:
# description: 'Sample input to use'
# required : true
# default : 'some value'
jobs:
build-nightly:
runs-on: ubuntu-latest
permissions:
contents : write
pull-requests: write
steps :
## To use an input, if defined, just refer to ${{ github.event.inputs.inputOne }}
## This action will cache the OpenAF runtime used by openaf/ojob-action to avoid reinstalling
## everytime the action is invoked. It should be cleared manually from time to time in order
## to use a more updated runtime.
# --------------------------
- name: Cache OpenAF runtime
uses: actions/cache@v3
with:
key : oaf-nightly
path: /tmp/oaf
# --------------
- name: Checkout
uses: actions/checkout@v4
# -----------------
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v2
- name: Create folder
run : |
mkdir nightly
## Add here other steps
## If you used workflow_run you can access ${{ github.event.workflow }} and ${{ github.event.workflow_run.conclusion }}
- name: Build nightly
uses: openaf/ojob-action@v4
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ojob: buildNightly.yaml
dist: nightly
# --------------------
- name: Prepare output
run : |
mv nightly output
# -----------------------
- name: Copy build result
uses: openaf/ojob-action@v4
env :
OS_OAFSH: ${{ secrets.OS_OAFSH }}
with:
dist : nightly
def : |
ojob:
opacks:
- S3
include:
- s3.yaml
todo:
- Copy build result
jobs:
- name: Copy build result
to :
- (secget) : OS_OAFSH
((secEnv)): true
- name: S3 Sync folder
args:
squash : remote
localPath: output
prefix : nightly/
bucket : oafsh
execute : true
build-t8:
runs-on: ubuntu-latest
permissions:
contents : write
pull-requests: write
steps :
## To use an input, if defined, just refer to ${{ github.event.inputs.inputOne }}
## This action will cache the OpenAF runtime used by openaf/ojob-action to avoid reinstalling
## everytime the action is invoked. It should be cleared manually from time to time in order
## to use a more updated runtime.
# --------------------------
- name: Cache OpenAF runtime
uses: actions/cache@v3
with:
key : oaf-nightly
path: /tmp/oaf
# --------------
- name: Checkout
uses: actions/checkout@v4
# -----------------
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v2
- name: Create folder
run : |
mkdir t8
## Add here other steps
## If you used workflow_run you can access ${{ github.event.workflow }} and ${{ github.event.workflow_run.conclusion }}
- name: Build T8
uses: openaf/ojob-action@v4
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
ojob: buildT8.yaml
dist: nightly
# --------------------
- name: Prepare output
run : |
mv t8 output
# -----------------------
- name: Copy build result
uses: openaf/ojob-action@v4
env :
OS_OAFSH: ${{ secrets.OS_OAFSH }}
with:
dist : nightly
def : |
ojob:
opacks:
- S3
include:
- s3.yaml
todo:
- Copy build result
jobs:
- name: Copy build result
to :
- (secget) : OS_OAFSH
((secEnv)): true
- name: S3 Sync folder
args:
squash : remote
localPath: output
prefix : t8/
bucket : oafsh
execute : true