-
Notifications
You must be signed in to change notification settings - Fork 10
97 lines (80 loc) · 2.7 KB
/
binaries.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
---
name: Build binaries
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Get sdx kit
run: curl ${{vars.DOWNLOADURL}}/sdx-20110317.kit --output sdx.kit
- name: Download tclkits
run: |
curl ${{vars.DOWNLOADURL}}/tclkit --output tclkit
curl ${{vars.DOWNLOADURL}}/tclkit-x64 --output tclkit-x64
curl ${{vars.DOWNLOADURL}}/tclkit-ahf --output tclkit-ahf
curl ${{vars.DOWNLOADURL}}/tclkit-aarch64 --output tclkit-aarch64
curl ${{vars.DOWNLOADURL}}/tclkit.exe --output tclkit.exe
- name: Install tclkit
run: |
sudo cp tclkit-x64 /usr/local/bin/tclkit
sudo chmod +x /usr/local/bin/tclkit
- name: Build linux x86 32-bit binary
run: >
tclkit sdx.kit wrap
otmonitor -vfs otmonitor.vfs -runtime tclkit
- name: Upload linux x86 32-bit binary
uses: actions/upload-artifact@v3
with:
name: Linux x86 32-bit binary
path: otmonitor
- name: Build linux x86 64-bit binary
run: >
tclkit sdx.kit wrap
otmonitor-x64 -vfs otmonitor.vfs -runtime tclkit-x64
- name: Upload linux x86 64-bit binary
uses: actions/upload-artifact@v3
with:
name: Linux x86 64-bit binary
path: otmonitor-x64
- name: Build linux arm 32-bit binary
run: >
tclkit sdx.kit wrap
otmonitor-ahf -vfs otmonitor.vfs -runtime tclkit-ahf
- name: Upload linux arm 32-bit binary
uses: actions/upload-artifact@v3
with:
name: Linux arm 32-bit binary
path: otmonitor-ahf
- name: Build linux arm 64-bit binary
run: >
tclkit sdx.kit wrap
otmonitor-aarch64 -vfs otmonitor.vfs -runtime tclkit-aarch64
- name: Upload linux arm 64-bit binary
uses: actions/upload-artifact@v3
with:
name: Linux arm 64-bit binary
path: otmonitor-aarch64
- name: Build windows binary
run: >
tclkit sdx.kit wrap
otmonitor.exe -vfs otmonitor.vfs -runtime tclkit.exe
- name: Upload windows binary
uses: actions/upload-artifact@v3
with:
name: Windows binary
path: otmonitor.exe
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: hvxl/otmonitor:latest