Skip to content

Commit f4558c1

Browse files
authored
Removing CI executing in a container
1 parent cbbda4f commit f4558c1

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed
Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
116
name: Build and Test
217

318
on:
@@ -20,53 +35,35 @@ jobs:
2035
runs-on: [self-hosted, gpu]
2136
timeout-minutes: 240
2237
env:
23-
CUDA_VISIBLE_DEVICES: all
24-
NVIDIA_VISIBLE_DEVICES: all
25-
NVIDIA_DRIVER_CAPABILITIES: all
26-
CUDA_HOME: /usr/local/cuda
27-
LD_LIBRARY_PATH: /usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
28-
DOCKER_HOST: unix:///var/run/docker.sock
29-
DOCKER_TLS_CERTDIR: ""
30-
OMNI_KIT_ALLOW_ROOT: 1
31-
container:
32-
image: ubuntu:22.04
33-
options: --gpus all --security-opt=no-new-privileges:true --privileged
38+
OMNI_KIT_ALLOW_ROOT: 1
3439

3540
steps:
36-
- name: Install dependencies
37-
run: |
38-
apt-get update
39-
apt-get install -y git git-lfs build-essential python3 python3-pip curl wget ca-certificates gnupg lsb-release
40-
# Install Docker
41-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
42-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
43-
apt-get update
44-
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
45-
# Start Docker daemon
46-
dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2376 &
47-
sleep 10
48-
4941
- name: Checkout repository
5042
uses: actions/checkout@v4
5143
with:
5244
fetch-depth: 0
5345
lfs: true
5446

55-
- name: Configure Git LFS
47+
- name: Clean checkout
5648
run: |
57-
git config --global --add safe.directory $GITHUB_WORKSPACE
58-
git lfs install
59-
git lfs update --force
49+
git clean -fdx
50+
git reset --hard HEAD
6051
61-
- name: Build Isaac Sim
52+
- name: Build and Test Isaac Sim
6253
run: |
54+
set -euo pipefail # Exit on error, undefined vars, pipe failures
55+
set -x # Print commands being executed
56+
# Build Isaac Sim
6357
touch .eula_accepted
6458
chmod +x ./build.sh
6559
./build.sh
66-
67-
- name: Test Isaac Sim
68-
run: |
60+
if [ $? -ne 0 ]; then
61+
echo 'BUILD FAILED with exit code ' $?
62+
exit 1
63+
fi
64+
65+
# Test Isaac Sim
6966
cd _build/linux-x86_64/release
7067
touch .eula_accepted
7168
chmod +x ./isaac-sim.sh
72-
./isaac-sim.sh --no-window --/app/quitAfter=500 --/app/file/ignoreUnsavedOnExit=1
69+
./isaac-sim.sh --no-window --/app/quitAfter=500 --/app/file/ignoreUnsavedOnExit=1

0 commit comments

Comments
 (0)