add requirements.txt #4
This file contains hidden or 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_all_versions | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| build_win32: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile | |
| shell: bash | |
| run: | | |
| python clone_and_build.py | |
| ls | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows | |
| path: All_in_one | |
| build_linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Clang | |
| uses: egor-tensin/setup-clang@v1 | |
| with: | |
| version: 15 | |
| platform: x64 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile | |
| run: | | |
| python clone_and_build.py | |
| ls | |
| env: | |
| CC: clang | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux | |
| path: All_in_one | |
| build_darwin: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Compile | |
| run: | | |
| python clone_and_build.py | |
| ls | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: darwin | |
| path: All_in_one | |
| merge: | |
| runs-on: ubuntu-latest | |
| needs: [ build_win32, build_linux, build_darwin ] | |
| steps: | |
| - name: "Create output directory" | |
| run: "mkdir $GITHUB_WORKSPACE/output" | |
| - name: "Merge win32" | |
| uses: actions/[email protected] | |
| with: | |
| name: windows | |
| path: $GITHUB_WORKSPACE/output/windows_x86_64 | |
| - name: "Merge linux" | |
| uses: actions/[email protected] | |
| with: | |
| name: linux | |
| path: $GITHUB_WORKSPACE/output/linux_x86_64 | |
| - name: "Merge darwin" | |
| uses: actions/[email protected] | |
| with: | |
| name: darwin | |
| path: $GITHUB_WORKSPACE/output/darwin | |
| - name: "Upload merged artifact" | |
| uses: actions/[email protected] | |
| with: | |
| name: all-in-one | |
| path: $GITHUB_WORKSPACE/output | |