Fix error from update via cli. #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build binaries | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- 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@v4 | |
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@v4 | |
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@v4 | |
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@v4 | |
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@v4 | |
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 |