Skip to content

Commit

Permalink
Merge branch 'ershi/update-gh-workflow' into 'main'
Browse files Browse the repository at this point in the history
Fix Ubuntu GH Workflow and Restore Windows Jobs

See merge request omniverse/warp!962
  • Loading branch information
shi-eric committed Jan 9, 2025
2 parents 4eb1e1a + fb1d5a5 commit 211b962
Showing 1 changed file with 67 additions and 1 deletion.
68 changes: 67 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,33 @@ env:
PYTHON_VERSION: 3.11

jobs:
build-warp-windows:
runs-on: windows-2019
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir --upgrade numpy
tools/packman/packman install -l _build/target-deps/cuda cuda 11.8.0_522.06-abe3d9d7-windows-x86_64
- name: Build
run: |
python build_lib.py --cuda_path=_build/target-deps/cuda
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact-windows
path: ./warp/bin/

build-warp-ubuntu:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
artifact-url: ${{ steps.exports-header.outputs.artifact-url }}
steps:
Expand Down Expand Up @@ -80,6 +105,47 @@ jobs:
name: build-artifact-macos
path: ./warp/bin/

test-warp-windows:
runs-on: windows-latest
needs: build-warp-windows
env:
OS: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Download Warp build artifact
uses: actions/download-artifact@v4
with:
name: build-artifact-windows
path: ./warp/bin/
- name: Install Dependencies
run: |
python -m pip cache purge
python -m pip install --upgrade pip
pip install --no-cache-dir --upgrade numpy coverage[toml] usd-core
pip install --no-cache-dir .
- name: Run Tests
run: python -m warp.tests --junit-report-xml rspec.xml --coverage --coverage-xml coverage.xml -s autodetect
- name: Test Summary
uses: test-summary/[email protected]
with:
paths: "rspec.xml"
show: "fail"
if: always()
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
env_vars: OS,PYTHON_VERSION
files: ./coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}

test-warp-ubuntu:
runs-on: ubuntu-latest
needs: build-warp-ubuntu
Expand Down

0 comments on commit 211b962

Please sign in to comment.