6
6
workflow_dispatch :
7
7
8
8
jobs :
9
+ setup :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ timestamp : ${{ steps.timestamp.outputs.timestamp }}
13
+ steps :
14
+ - name : Get timestamp
15
+ id : timestamp
16
+ run : echo "timestamp=$(date +'%Y.%m.%d.%H%M')" >> $GITHUB_OUTPUT
17
+
9
18
unix-build :
19
+ needs : setup
10
20
runs-on : ${{ matrix.os }}
11
21
strategy :
12
22
matrix :
62
72
run : |
63
73
LONG_SHA=${{ github.sha }}
64
74
echo "sha=${LONG_SHA::7}" >> $GITHUB_OUTPUT
65
- - name : Get timestamp
66
- id : timestamp
67
- run : echo "timestamp=$(date +'%Y.%m.%d.%H%M')" >> $GITHUB_OUTPUT
68
75
- name : Install dependencies
69
76
run : deno install
70
77
- name : Save SHA to textfile
@@ -115,7 +122,7 @@ jobs:
115
122
if : ${{ github.event_name != 'workflow_dispatch' }}
116
123
with :
117
124
file : ${{ steps.folder-name.outputs.name }}.zip
118
- tag : ${{ steps.timestamp .outputs.timestamp }}-${{ steps.sha.outputs.sha }}
125
+ tag : ${{ needs.setup .outputs.timestamp }}-${{ steps.sha.outputs.sha }}
119
126
overwrite : true
120
127
release_name : YALS-${{ steps.sha.outputs.sha }}
121
128
body : |
@@ -129,6 +136,7 @@ jobs:
129
136
- **Metal** - Includes both Metal and CPU support for macOS.
130
137
131
138
windows-build :
139
+ needs : setup
132
140
runs-on : ${{ matrix.os }}
133
141
strategy :
134
142
matrix :
@@ -192,9 +200,6 @@ jobs:
192
200
- name : Get short SHA
193
201
id : sha
194
202
run : echo "sha=$("${{ github.sha }}".Substring(0,7))" >> $env:GITHUB_OUTPUT
195
- - name : Get timestamp
196
- id : timestamp
197
- run : echo "timestamp=$(Get-Date -Format 'yyyy.MM.dd.HHmm')" >> $env:GITHUB_OUTPUT
198
203
- name : Install dependencies
199
204
run : deno install
200
205
- name : Save SHA to textfile
@@ -245,7 +250,7 @@ jobs:
245
250
if : ${{ github.event_name != 'workflow_dispatch' }}
246
251
with :
247
252
file : ${{ steps.folder-name.outputs.name }}.zip
248
- tag : ${{ steps.timestamp .outputs.timestamp }}-${{ steps.sha.outputs.sha }}
253
+ tag : ${{ needs.setup .outputs.timestamp }}-${{ steps.sha.outputs.sha }}
249
254
overwrite : true
250
255
release_name : YALS-${{ steps.sha.outputs.sha }}
251
256
body : |
0 commit comments