diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5d6c46c..58a0a57d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,46 +126,46 @@ jobs: name: OlivOS-Win-32-old path: ./OlivOS-Win - #build-win32-debug: - # runs-on: windows-latest - # steps: - # - uses: actions/checkout@v3 - # - name: Setup Python - # uses: actions/setup-python@v4 - # with: - # python-version: 3.7.5 - # cache: pip - # architecture: x86 - # - name: Install dependencies - # run: | - # python -m pip install --upgrade pip - # python -m pip install -r ./requirements_win.txt - # - name: Run packing - # run: | - # cp ./OlivOS/hook.py ./OlivOS/hook_bak.py - # cp ./OlivOS/hook_pack_debug.py ./OlivOS/hook.py - # pyinstaller ./main_debug.spec - # - name: Run artifact - # run: | - # mkdir OlivOS-Win - # cp ./dist/main.exe ./OlivOS-win/OlivOS_debug.exe - # - name: Packing OlivOS-Win - # uses: actions/upload-artifact@v3 - # with: - # name: OlivOS-Win-32-old-debug-origin - # path: ./OlivOS-Win - # - name: Ready for Packing - # #run: | - # # mkdir ./OlivOS-Win/lib - # # curl -L https://github.com/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_windows_386.exe -o ./OlivOS-Win/lib/go-cqhttp.exe - # # curl -L https://github.com/onebot-walle/walle-q/releases/latest/download/walle-q-i686-windows-gnu.exe -o ./OlivOS-Win/lib/walle-q.exe - # run: | - # mkdir ./OlivOS-Win/lib - # - name: Packing OlivOS-Win-with-lib - # uses: actions/upload-artifact@v3 - # with: - # name: OlivOS-Win-32-old-debug - # path: ./OlivOS-Win + build-win32-debug: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.7.5 + cache: pip + architecture: x86 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r ./requirements_win.txt + - name: Run packing + run: | + cp ./OlivOS/hook.py ./OlivOS/hook_bak.py + cp ./OlivOS/hook_pack_debug.py ./OlivOS/hook.py + pyinstaller ./main_debug.spec + - name: Run artifact + run: | + mkdir OlivOS-Win + cp ./dist/main.exe ./OlivOS-win/OlivOS_debug.exe + - name: Packing OlivOS-Win + uses: actions/upload-artifact@v3 + with: + name: OlivOS-Win-32-old-debug-origin + path: ./OlivOS-Win + - name: Ready for Packing + #run: | + # mkdir ./OlivOS-Win/lib + # curl -L https://github.com/Mrs4s/go-cqhttp/releases/latest/download/go-cqhttp_windows_386.exe -o ./OlivOS-Win/lib/go-cqhttp.exe + # curl -L https://github.com/onebot-walle/walle-q/releases/latest/download/walle-q-i686-windows-gnu.exe -o ./OlivOS-Win/lib/walle-q.exe + run: | + mkdir ./OlivOS-Win/lib + - name: Packing OlivOS-Win-with-lib + uses: actions/upload-artifact@v3 + with: + name: OlivOS-Win-32-old-debug + path: ./OlivOS-Win build-linux-release: runs-on: ubuntu-20.04