|
8 | 8 | - update-webui |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - update-binaries: |
| 11 | + update-webui-binaries: |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 |
|
14 | 14 | steps: |
15 | 15 | - name: Checkout the repo |
16 | 16 | uses: actions/checkout@v2 |
17 | 17 |
|
18 | | - - name: Set up directories and Download Binaries |
| 18 | + - name: Download WebUI Archives |
19 | 19 | run: | |
20 | | - mkdir -p PyPI/Package/src/webui |
21 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-clang-x64.zip -O webui-linux-clang-x64.zip |
22 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-gcc-arm.zip -O webui-linux-gcc-arm.zip |
23 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-gcc-arm64.zip -O webui-linux-gcc-arm64.zip |
24 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-gcc-x64.zip -O webui-linux-gcc-x64.zip |
25 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-macos-clang-arm64.tar.gz -O webui-macos-clang-arm64.tar.gz |
26 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-macos-clang-x64.tar.gz -O webui-macos-clang-x64.tar.gz |
27 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-windows-gcc-x64.zip -O webui-windows-gcc-x64.zip |
28 | | - wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-windows-msvc-x64.zip -O webui-windows-msvc-x64.zip |
29 | | -
|
30 | | - - name: Extract Binaries |
| 20 | + mkdir -p TempArchives |
| 21 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-clang-x64.zip -O TempArchives/webui-linux-clang-x64.zip |
| 22 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-gcc-arm.zip -O TempArchives/webui-linux-gcc-arm.zip |
| 23 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-gcc-arm64.zip -O TempArchives/webui-linux-gcc-arm64.zip |
| 24 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-linux-gcc-x64.zip -O TempArchives/webui-linux-gcc-x64.zip |
| 25 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-macos-clang-arm64.tar.gz -O TempArchives/webui-macos-clang-arm64.tar.gz |
| 26 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-macos-clang-x64.tar.gz -O TempArchives/webui-macos-clang-x64.tar.gz |
| 27 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-windows-gcc-x64.zip -O TempArchives/webui-windows-gcc-x64.zip |
| 28 | + wget -q https://github.com/webui-dev/webui/releases/download/2.4.0/webui-windows-msvc-x64.zip -O TempArchives/webui-windows-msvc-x64.zip |
| 29 | +
|
| 30 | + - name: Extract Archives |
| 31 | + run: | |
| 32 | + mkdir TempArchives/webui-linux-clang-x64 |
| 33 | + mkdir TempArchives/webui-linux-gcc-arm |
| 34 | + mkdir TempArchives/webui-linux-gcc-arm64 |
| 35 | + mkdir TempArchives/webui-linux-gcc-x64 |
| 36 | + mkdir TempArchives/webui-windows-gcc-x64 |
| 37 | + mkdir TempArchives/webui-windows-msvc-x64 |
| 38 | + mkdir TempArchives/webui-macos-clang-arm64 |
| 39 | + mkdir TempArchives/webui-macos-clang-x64 |
| 40 | + unzip -q TempArchives/webui-linux-clang-x64.zip -d TempArchives/webui-linux-clang-x64 |
| 41 | + unzip -q TempArchives/webui-linux-gcc-arm.zip -d TempArchives/webui-linux-gcc-arm |
| 42 | + unzip -q TempArchives/webui-linux-gcc-arm64.zip -d TempArchives/webui-linux-gcc-arm64 |
| 43 | + unzip -q TempArchives/webui-linux-gcc-x64.zip -d TempArchives/webui-linux-gcc-x64 |
| 44 | + unzip -q TempArchives/webui-windows-gcc-x64.zip -d TempArchives/webui-windows-gcc-x64 |
| 45 | + unzip -q TempArchives/webui-windows-msvc-x64.zip -d TempArchives/webui-windows-msvc-x64 |
| 46 | + tar -xzf TempArchives/webui-macos-clang-arm64.tar.gz -C TempArchives/webui-macos-clang-arm64 |
| 47 | + tar -xzf TempArchives/webui-macos-clang-x64.tar.gz -C TempArchives/webui-macos-clang-x64 |
| 48 | +
|
| 49 | + - name: Copy Libs from Archives |
31 | 50 | run: | |
32 | | - unzip -q webui-linux-clang-x64.zip -d PyPI/Package/src/webui/webui-linux-clang-x64 |
33 | | - unzip -q webui-linux-gcc-arm.zip -d PyPI/Package/src/webui/webui-linux-gcc-arm |
34 | | - unzip -q webui-linux-gcc-arm64.zip -d PyPI/Package/src/webui/webui-linux-gcc-arm64 |
35 | | - unzip -q webui-linux-gcc-x64.zip -d PyPI/Package/src/webui/webui-linux-gcc-x64 |
36 | | - tar -xzf webui-macos-clang-arm64.tar.gz -C PyPI/Package/src/webui/webui-macos-clang-arm64 |
37 | | - tar -xzf webui-macos-clang-x64.tar.gz -C PyPI/Package/src/webui/webui-macos-clang-x64 |
38 | | - unzip -q webui-windows-gcc-x64.zip -d PyPI/Package/src/webui/webui-windows-gcc-x64 |
39 | | - unzip -q webui-windows-msvc-x64.zip -d PyPI/Package/src/webui/webui-windows-msvc-x64 |
40 | | -
|
41 | | - - name: Remove temporary files |
| 51 | + mkdir TempOut |
| 52 | + mkdir TempOut/webui-linux-clang-x64 |
| 53 | + mkdir TempOut/webui-linux-gcc-arm |
| 54 | + mkdir TempOut/webui-linux-gcc-arm64 |
| 55 | + mkdir TempOut/webui-linux-gcc-x64 |
| 56 | + mkdir TempOut/webui-windows-gcc-x64 |
| 57 | + mkdir TempOut/webui-windows-msvc-x64 |
| 58 | + mkdir TempOut/webui-macos-clang-arm64 |
| 59 | + mkdir TempOut/webui-macos-clang-x64 |
| 60 | + find TempArchives -type d -name 'debug' -exec rm -rf {} + |
| 61 | + find TempArchives/webui-linux-clang-x64 -type f -name 'webui-2.so' -exec cp {} TempOut/webui-linux-clang-x64 \; -quit |
| 62 | + find TempArchives/webui-linux-clang-x64 -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-linux-clang-x64 \; -quit |
| 63 | + find TempArchives/webui-linux-gcc-arm -type f -name 'webui-2.so' -exec cp {} TempOut/webui-linux-gcc-arm \; -quit |
| 64 | + find TempArchives/webui-linux-gcc-arm -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-linux-gcc-arm \; -quit |
| 65 | + find TempArchives/webui-linux-gcc-arm64 -type f -name 'webui-2.so' -exec cp {} TempOut/webui-linux-gcc-arm64 \; -quit |
| 66 | + find TempArchives/webui-linux-gcc-arm64 -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-linux-gcc-arm64 \; -quit |
| 67 | + find TempArchives/webui-linux-gcc-x64 -type f -name 'webui-2.so' -exec cp {} TempOut/webui-linux-gcc-x64 \; -quit |
| 68 | + find TempArchives/webui-linux-gcc-x64 -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-linux-gcc-x64 \; -quit |
| 69 | + find TempArchives/webui-windows-gcc-x64 -type f -name 'webui-2.dll' -exec cp {} TempOut/webui-windows-gcc-x64 \; -quit |
| 70 | + find TempArchives/webui-windows-gcc-x64 -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-windows-gcc-x64 \; -quit |
| 71 | + find TempArchives/webui-windows-msvc-x64 -type f -name 'webui-2.dll' -exec cp {} TempOut/webui-windows-msvc-x64 \; -quit |
| 72 | + find TempArchives/webui-windows-msvc-x64 -type f -name 'webui-2.lib' -exec cp {} TempOut/webui-windows-msvc-x64 \; -quit |
| 73 | + find TempArchives/webui-windows-msvc-x64 -type f -name 'webui-2-static.lib' -exec cp {} TempOut/webui-windows-msvc-x64 \; -quit |
| 74 | + find TempArchives/webui-macos-clang-arm64 -type f -name 'webui-2.dylib' -exec cp {} TempOut/webui-macos-clang-arm64 \; -quit |
| 75 | + find TempArchives/webui-macos-clang-arm64 -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-macos-clang-arm64 \; -quit |
| 76 | + find TempArchives/webui-macos-clang-x64 -type f -name 'webui-2.dylib' -exec cp {} TempOut/webui-macos-clang-x64 \; -quit |
| 77 | + find TempArchives/webui-macos-clang-x64 -type f -name 'libwebui-2-static.a' -exec cp {} TempOut/webui-macos-clang-x64 \; -quit |
| 78 | +
|
| 79 | + - name: Copy Libs to Wrapper |
| 80 | + run: | |
| 81 | + cp -ru TempOut/* PyPI/Package/src/webui/ |
| 82 | +
|
| 83 | + - name: Remove Temporary Archives |
42 | 84 | run: | |
43 | | - rm *.zip *.tar.gz |
| 85 | + rm -rf TempArchives |
| 86 | + rm -rf TempOut |
44 | 87 |
|
45 | 88 | - name: Commit and Push Changes |
46 | 89 | run: | |
|
0 commit comments