-
-
Notifications
You must be signed in to change notification settings - Fork 45
169 lines (150 loc) · 6.48 KB
/
make_release.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
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
name: Create release if everything passes
on:
push:
branches:
- develop
pull_request:
schedule:
- cron: '0 0 1 * *'
jobs:
publish-binaries:
name: "Publish Binaries"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Wait for status checks'
id: waitforstatuschecks
uses: "WyriHaximus/[email protected]"
with:
ignoreActions: "Publish Binaries"
checkInterval: 60
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Sleep until all binaries get uploaded
shell: bash
run: |
sleep 60
- name: Download Linux artifacts
uses: dawidd6/action-download-artifact@v2
if: steps.waitforstatuschecks.outputs.status == 'success'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: unittests_linux.yml
path: artifacts
- name: Download Mac OS artifacts
uses: dawidd6/action-download-artifact@v2
if: steps.waitforstatuschecks.outputs.status == 'success'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: unittests_macos.yml
path: artifacts
- name: Download Windows artifacts
uses: dawidd6/action-download-artifact@v2
if: steps.waitforstatuschecks.outputs.status == 'success'
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: unittests_windows.yml
path: artifacts
# - name: Delete Tag
# uses: dev-drprasad/[email protected]
# with:
# delete_release: true
# tag_name: last_all_tests_passing
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: all_tests_passed_${{ github.sha }}
release_name: All tests passed ${{ github.sha }}
body: |
```
${{ github.event.head_commit.message }}
```
Prebuilt binaries with development headers and documentation for common platforms are in Assets below:
draft: false
prerelease: true
- name: Upload Linux 1
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Linux error_code g++ prebuilt binaries/llfio-v2.0-binaries-linux-x64.tgz
asset_name: llfio-v2.0-binaries-ubuntu20.04-x64-error_code.tgz
asset_content_type: application/gzip
- name: Upload Linux 2
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Linux status_code g++ prebuilt binaries/llfio-v2.0-binaries-linux-x64.tgz
asset_name: llfio-v2.0-binaries-ubuntu20.04-x64-status_code.tgz
asset_content_type: application/gzip
- name: Upload Linux 3
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Linux error_code arm-linux-gnueabihf-g++ prebuilt binaries/llfio-v2.0-binaries-linux-armhf.tgz
asset_name: llfio-v2.0-binaries-ubuntu20.04-armhf-error_code.tgz
asset_content_type: application/gzip
- name: Upload Linux 4
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Linux status_code arm-linux-gnueabihf-g++ prebuilt binaries/llfio-v2.0-binaries-linux-armhf.tgz
asset_name: llfio-v2.0-binaries-ubuntu20.04-armhf-status_code.tgz
asset_content_type: application/gzip
- name: Upload MacOS 1
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Mac OS error_code prebuilt binaries/llfio-v2.0-binaries-darwin-x64.tgz
asset_name: llfio-v2.0-binaries-macos-11-x64-error_code.tgz
asset_content_type: application/gzip
- name: Upload MacOS 2
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Mac OS status_code prebuilt binaries/llfio-v2.0-binaries-darwin-x64.tgz
asset_name: llfio-v2.0-binaries-macos-11-x64-status_code.tgz
asset_content_type: application/gzip
- name: Upload Windows 1
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Windows VS2022 error_code prebuilt binaries/llfio-v2.0-binaries-win64.zip
asset_name: llfio-v2.0-binaries-win64-vs2022-error_code.zip
asset_content_type: application/zip
- name: Upload Windows 2
uses: actions/upload-release-asset@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/Windows VS2022 status_code prebuilt binaries/llfio-v2.0-binaries-win64.zip
asset_name: llfio-v2.0-binaries-win64-vs2022-status_code.zip
asset_content_type: application/zip