From 91892cc31dcbe8869dea5dd5e9ef71707575a17e Mon Sep 17 00:00:00 2001 From: melpon Date: Sun, 3 Nov 2024 14:31:38 +0900 Subject: [PATCH] =?UTF-8?q?Python=20=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=92=E5=A2=97=E3=82=84=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-relwithdebinfo.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-relwithdebinfo.yml b/.github/workflows/build-relwithdebinfo.yml index dfae6fd..b0e3da5 100644 --- a/.github/workflows/build-relwithdebinfo.yml +++ b/.github/workflows/build-relwithdebinfo.yml @@ -21,6 +21,11 @@ jobs: platform: - name: ubuntu-24.04_x86_64 runs-on: ubuntu-24.04 + python: + - version: 3.10 + - version: 3.11 + - version: 3.12 + - version: 3.13 runs-on: ${{ matrix.platform.runs-on }} steps: - name: Disk Cleanup @@ -118,7 +123,7 @@ jobs: sudo apt-get install -y software-properties-common # X11 - sudo apt-get install libx11-dev libxext-dev + sudo apt-get install -y libx11-dev libxext-dev # CUDA wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb @@ -134,6 +139,12 @@ jobs: if: steps.sora-cpp-sdk-cache.outputs.cache-hit != 'true' working-directory: sora-cpp-sdk run: python3 run.py --relwithdebinfo ${{ matrix.platform.name }} + - name: Teardown sora-cpp-sdk + if: steps.sora-cpp-sdk-cache.outputs.cache-hit != 'true' + run: | + # CUDA が入ってると使おうとしてエラーになるのでアンインストールしておく + sudo apt-get remove -y cuda + sudo apt-get autoremove -y # sora-python-sdk - name: Setup sora-python-sdk @@ -174,7 +185,7 @@ jobs: working-directory: sora-python-sdk run: | set -x - # uv python pin ${{ matrix.python_version }} + uv python pin ${{ matrix.python.version }} uv sync uv run python run.py --relwithdebinfo ${{ matrix.platform.name }} # cache