diff --git a/.github/workflows/ci-ubuntu.yml b/.github/workflows/ci-ubuntu.yml deleted file mode 100644 index 8018010..0000000 --- a/.github/workflows/ci-ubuntu.yml +++ /dev/null @@ -1,71 +0,0 @@ -name: ci-ubuntu - -# Here we verify if torchlib-xpu would be buildable on Ubuntu 24.04 by -# developers. We don't use this workflow to generate wheels for PyPI -# upload as such generation requires special setup for the manylinux -# with the oldest possible glibc as well as some special setup for the -# project to handle support for multiple FFmpeg versions. - -on: [push, pull_request] - -permissions: read-all - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-24.04 - steps: - - name: 'Checkout' - uses: actions/checkout@v6 - - name: Install uv - uses: astral-sh/setup-uv@v7 - with: - python-version: 3.14 - - name: 'Install Intel drivers' - run: | - sudo add-apt-repository -y ppa:kobuk-team/intel-graphics - sudo apt-get install -y \ - libva-dev \ - libze-dev \ - libze-intel-gpu1 \ - intel-ocloc - - name: 'Install oneAPI 2025.3' - run: | - wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | \ - sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg - echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | \ - sudo tee /etc/apt/sources.list.d/oneAPI.list - sudo apt-get update - sudo apt-get install -y intel-deep-learning-essentials-2025.3 - - name: 'Install FFmpeg' - run: | - sudo apt-get update - sudo apt-get install -y \ - libavcodec-dev \ - libavdevice-dev \ - libavfilter-dev \ - libavformat-dev \ - libavutil-dev \ - libswresample-dev \ - libswscale-dev - - name: 'Build the project' - run: | - source /opt/intel/oneapi/2025.3/oneapi-vars.sh - uv build --all --index https://download.pytorch.org/whl/xpu -vv - - name: 'Repair wheels with auditwheel' - run: | - uvx auditwheel repair dist/*.whl --wheel-dir wheelhouse/ --exclude "*" \ - --allow-pure-python-wheel - - name: 'Create test environment' - run: | - uv venv - - name: 'Test installing wheels' - run: | - uv pip install torch~=2.12.0 wheelhouse/*.whl \ - --index https://download.pytorch.org/whl/xpu -vv - - name: 'Test importing torchcodec-xpu' - run: | - uv run --no-project python -c "import torchcodec_xpu; print(torchcodec_xpu.__version__)" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be447ca..51bc666 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: env: WHEELS: torchlib-${{ matrix.python-version }}-wheels container: - image: 'pytorch/manylinux2_28-builder:xpu-main' + image: 'pytorch/manylinux2_28-builder:xpu-v2.12.0-rc1' steps: - name: 'Checkout' uses: actions/checkout@v6 @@ -106,7 +106,7 @@ jobs: TORCHCODEC_FFMPEG7_INSTALL_PREFIX: ${{ github.workspace }}/_install/ffmpeg-n7.1.3 TORCHCODEC_FFMPEG8_INSTALL_PREFIX: ${{ github.workspace }}/_install/ffmpeg-n8.0.1 run: | - source /opt/intel/oneapi/2025.3/oneapi-vars.sh + source /opt/intel/oneapi/setvars.sh uv build --all --index https://download.pytorch.org/whl/xpu -vv - name: 'Repair wheels with auditwheel' run: |