-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ershi/update-gh-workflow' into 'main'
Fix Ubuntu GH Workflow and Restore Windows Jobs See merge request omniverse/warp!962
- Loading branch information
Showing
1 changed file
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|