From 8f0da58e1fb88aa71b3d3949e1d4ddda78e77939 Mon Sep 17 00:00:00 2001 From: voluntas Date: Mon, 23 Dec 2024 22:35:43 +0900 Subject: [PATCH] =?UTF-8?q?setup-uv=20=E3=82=92=20v5=20=E3=81=AB=E4=B8=8A?= =?UTF-8?q?=E3=81=92=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 12 +++++++++--- .github/workflows/e2e-test.yml | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae14862..33e8c31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,9 @@ jobs: - uses: actions/checkout@v4 - run: | sudo apt-get -y install libx11-dev - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false - run: uv python pin 3.13 - run: uv sync - name: Generate pyi @@ -103,7 +105,9 @@ jobs: # multistrap に insecure なリポジトリからの取得を許可する設定を入れる sudo sed -e 's/Apt::Get::AllowUnauthenticated=true/Apt::Get::AllowUnauthenticated=true";\n$config_str .= " -o Acquire::AllowInsecureRepositories=true/' -i /usr/sbin/multistrap if: ${{ matrix.platform.os == 'ubuntu' && matrix.platform.arch == 'armv8' }} - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false - run: uv python pin ${{ matrix.python_version }} - run: uv sync @@ -176,7 +180,9 @@ jobs: - run: | cp sora_sdk/py.typed src/sora_sdk/py.typed cp sora_sdk/sora_sdk_ext.pyi src/sora_sdk/sora_sdk_ext.pyi - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false - run: uv python pin ${{ matrix.python_version }} - run: uv sync - run: uv run python run.py windows_x86_64 diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 19721e0..c45eab5 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -51,7 +51,9 @@ jobs: bzip2 -d libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so.bz2 mv libopenh264-${{ env.OPENH264_VERSION }}-linux64.7.so libopenh264.so echo "OPENH264_PATH=$(pwd)/libopenh264.so" >> $GITHUB_ENV - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false - run: uv python pin ${{ matrix.python_version }} - run: uv sync - run: uv run python run.py ${{ matrix.os }}_x86_64 @@ -81,7 +83,9 @@ jobs: bzip2 -d libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib.bz2 mv libopenh264-${{ env.OPENH264_VERSION }}-mac-arm64.dylib libopenh264.dylib echo "OPENH264_PATH=$(pwd)/libopenh264.dylib" >> $GITHUB_ENV - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false - run: uv python pin ${{ matrix.python_version }} - run: uv sync - run: uv run python run.py macos_arm64 @@ -114,7 +118,9 @@ jobs: 7z e openh264-${{ env.OPENH264_VERSION }}-win64.dll.bz2 Rename-Item -Path "openh264-${{ env.OPENH264_VERSION }}-win64.dll" -NewName "libopenh264.dll" echo "OPENH264_PATH=$PWD\libopenh264.dll" >> $env:GITHUB_ENV - - uses: astral-sh/setup-uv@v4 + - uses: astral-sh/setup-uv@v5 + with: + enable-cache: false - run: uv python pin ${{ matrix.python_version }} - run: uv sync - run: uv run python run.py windows_x86_64