Try only extracting python folder (#2321)

pull/2322/head
Willem Melching 2020-10-12 13:37:01 +02:00 committed by GitHub
parent b105bd6f50
commit f258366e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 26 deletions

View File

@ -1,26 +1,26 @@
# name: simulator
# on:
# push:
# pull_request:
name: simulator
on:
push:
pull_request:
# jobs:
# docker_build:
# name: build container
# runs-on: ubuntu-16.04
# timeout-minutes: 50
# if: github.repository == 'commaai/openpilot'
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: true
# lfs: true
# - name: Docker build
# run: |
# docker pull commaai/openpilot-sim:latest || true
# tools/sim/build_container.sh
# - name: Push to dockerhub
# if: github.ref == 'refs/heads/master'
# run: |
# docker login -u wmelching -p ${{ secrets.COMMA_DOCKERHUB_TOKEN }}
# docker tag commaai/openpilot-sim docker.io/commaai/openpilot-sim:latest
# docker push docker.io/commaai/openpilot-sim:latest
jobs:
docker_build:
name: build container
runs-on: ubuntu-16.04
timeout-minutes: 50
if: github.repository == 'commaai/openpilot'
steps:
- uses: actions/checkout@v2
with:
submodules: true
lfs: true
- name: Docker build
run: |
docker pull commaai/openpilot-sim:latest || true
tools/sim/build_container.sh
- name: Push to dockerhub
if: github.ref == 'refs/heads/master'
run: |
docker login -u wmelching -p ${{ secrets.COMMA_DOCKERHUB_TOKEN }}
docker tag commaai/openpilot-sim docker.io/commaai/openpilot-sim:latest
docker push docker.io/commaai/openpilot-sim:latest

View File

@ -8,7 +8,7 @@ curl -O http://carla-assets-internal.s3.amazonaws.com/Releases/Linux/$FILE
rm -rf carla_tmp
mkdir -p carla_tmp
cd carla_tmp
tar xvf ../$FILE
tar xvf ../$FILE PythonAPI/
easy_install PythonAPI/carla/dist/carla-0.9.7-py3.5-linux-x86_64.egg || true
cd ..
rm -rf /tmp/$FILE