From 26932d5b0bd1750560b227780089712c12381a93 Mon Sep 17 00:00:00 2001 From: jinbridge <2635480475@qq.com> Date: Tue, 5 Mar 2024 10:48:15 +0800 Subject: [PATCH] test gpg sign --- .../workflows/bigdl-build-portable-zip.yml | 116 +++++++++--------- .github/workflows/llm_unit_tests.yml | 44 +++---- 2 files changed, 82 insertions(+), 78 deletions(-) diff --git a/.github/workflows/bigdl-build-portable-zip.yml b/.github/workflows/bigdl-build-portable-zip.yml index 898f919e9adc..d2346ef8b35d 100644 --- a/.github/workflows/bigdl-build-portable-zip.yml +++ b/.github/workflows/bigdl-build-portable-zip.yml @@ -9,65 +9,69 @@ on: jobs: - build-cpython: - runs-on: windows-latest - steps: - - uses: ilammy/msvc-dev-cmd@v1 - with: - toolset: 14.2 - - uses: actions/checkout@v4 - with: - repository: 'python/cpython' - ref: '3.9' - - name: Replace with SQLite 3.45.1 - # this is to fix security issue - # according to cpython, 3.9 is only accepting security patches - # so we need to manually replace it with sqlite 3.45.1 - shell: bash - run: | - cd ./PCbuild - sed -i 's/sqlite-3.37.2.0/sqlite-3.45.1.0/g' get_externals.bat - sed -i 's/sqlite-3.37.2.0/sqlite-3.45.1.0/g' python.props - cd .. - - name: Build cpython - run: | - ./Tools/msi/buildrelease.bat -x64 --skip-doc --skip-nuget --skip-msi - - name: Rename artifact - shell: bash - run: | - cd ./PCbuild/amd64/en-us - ls | xargs -I {} mv {} cpython-embed-zip.zip - cd ../../.. - - uses: actions/upload-artifact@v4 - with: - name: cpython-3.9-embed-zip - path: ./PCbuild/amd64/en-us/cpython-embed-zip.zip - build-portable-zip: - needs: build-cpython - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: cpython-3.9-embed-zip - path: ./python/llm/portable-zip/ - - name: Build Portable Zip - shell: cmd - run: | - cd .\python\llm\portable-zip - setup.bat --python-zip - cd ..\..\.. - - uses: actions/upload-artifact@v4 - with: - name: bigdl-llm-portable - path: ./python/llm/portable-zip/bigdl-llm-portable.zip + # build-cpython: + # runs-on: windows-latest + # steps: + # - uses: ilammy/msvc-dev-cmd@v1 + # with: + # toolset: 14.2 + # - uses: actions/checkout@v4 + # with: + # repository: 'python/cpython' + # ref: '3.9' + # - name: Replace with SQLite 3.45.1 + # # this is to fix security issue + # # according to cpython, 3.9 is only accepting security patches + # # so we need to manually replace it with sqlite 3.45.1 + # shell: bash + # run: | + # cd ./PCbuild + # sed -i 's/sqlite-3.37.2.0/sqlite-3.45.1.0/g' get_externals.bat + # sed -i 's/sqlite-3.37.2.0/sqlite-3.45.1.0/g' python.props + # cd .. + # - name: Build cpython + # run: | + # ./Tools/msi/buildrelease.bat -x64 --skip-doc --skip-nuget --skip-msi + # - name: Rename artifact + # shell: bash + # run: | + # cd ./PCbuild/amd64/en-us + # ls | xargs -I {} mv {} cpython-embed-zip.zip + # cd ../../.. + # - uses: actions/upload-artifact@v4 + # with: + # name: cpython-3.9-embed-zip + # path: ./PCbuild/amd64/en-us/cpython-embed-zip.zip + # build-portable-zip: + # needs: build-cpython + # runs-on: windows-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/download-artifact@v4 + # with: + # name: cpython-3.9-embed-zip + # path: ./python/llm/portable-zip/ + # - name: Build Portable Zip + # shell: cmd + # run: | + # cd .\python\llm\portable-zip + # setup.bat --python-zip + # cd ..\..\.. + # - uses: actions/upload-artifact@v4 + # with: + # name: bigdl-llm-portable + # path: ./python/llm/portable-zip/bigdl-llm-portable.zip generate-gpg-sign: - needs: build-portable-zip + # needs: build-portable-zip runs-on: [self-hosted, Bree] steps: - - uses: actions/download-artifact@v4 - with: - name: bigdl-llm-portable + # - uses: actions/download-artifact@v4 + # with: + # name: bigdl-llm-portable + - name: Generate file + shell: bash + run: | + echo test > bigdl-llm-portable.zip - name: Generate GPG Sign shell: bash run: | diff --git a/.github/workflows/llm_unit_tests.yml b/.github/workflows/llm_unit_tests.yml index 01155781c9b2..6160820400ca 100644 --- a/.github/workflows/llm_unit_tests.yml +++ b/.github/workflows/llm_unit_tests.yml @@ -11,28 +11,28 @@ permissions: # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [main] - paths: - - "python/llm/**" - - ".github/workflows/llm_unit_tests.yml" - - ".github/workflows/llm-binary-build.yml" - - ".github/actions/llm/setup-llm-env/action.yml" - - ".github/actions/llm/remove-llm-env/action.yml" - - ".github/actions/llm/cli-test-linux/action.yml" - - ".github/actions/llm/cli-test-windows/action.yml" - - ".github/actions/llm/download-llm-binary/action.yml" - pull_request: - branches: [main] - paths: - - "python/llm/**" - - ".github/workflows/llm_unit_tests.yml" - - ".github/workflows/llm-binary-build.yml" - - ".github/actions/llm/setup-llm-env/action.yml" - - ".github/actions/llm/remove-llm-env/action.yml" - - ".github/actions/llm/cli-test-linux/action.yml" - - ".github/actions/llm/cli-test-windows/action.yml" - - ".github/actions/llm/download-llm-binary/action.yml" + # push: + # branches: [main] + # paths: + # - "python/llm/**" + # - ".github/workflows/llm_unit_tests.yml" + # - ".github/workflows/llm-binary-build.yml" + # - ".github/actions/llm/setup-llm-env/action.yml" + # - ".github/actions/llm/remove-llm-env/action.yml" + # - ".github/actions/llm/cli-test-linux/action.yml" + # - ".github/actions/llm/cli-test-windows/action.yml" + # - ".github/actions/llm/download-llm-binary/action.yml" + # pull_request: + # branches: [main] + # paths: + # - "python/llm/**" + # - ".github/workflows/llm_unit_tests.yml" + # - ".github/workflows/llm-binary-build.yml" + # - ".github/actions/llm/setup-llm-env/action.yml" + # - ".github/actions/llm/remove-llm-env/action.yml" + # - ".github/actions/llm/cli-test-linux/action.yml" + # - ".github/actions/llm/cli-test-windows/action.yml" + # - ".github/actions/llm/download-llm-binary/action.yml" workflow_dispatch: workflow_call: