Skip to content

Commit

Permalink
add workflows and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
droid-dataset committed Mar 14, 2024
1 parent cb4a5b1 commit 8679a05
Show file tree
Hide file tree
Showing 9 changed files with 311 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build_container_laptop_fr3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: build laptop fr3 container and host on ghcr.io

on:
push:
branches: ['main']
paths:
- .gitmodules
- droid/**
- .docker/laptop/*
- .github/workflows/build_container_laptop_fr3
workflow_dispatch:

env:
REGISTRY: ghcr.io
ORG_NAME: alexanderkhazatsky
IMAGE_NAME: droid_laptop

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:

- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Free Space
run: |
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf ${GITHUB_WORKSPACE}/.git
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: .docker/laptop/Dockerfile.laptop_fr3
push: true
no-cache: true
tags: ${{ env.REGISTRY }}/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}:fr3
60 changes: 60 additions & 0 deletions .github/workflows/build_container_laptop_panda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: build laptop panda container and host on ghcr.io

on:
push:
branches: ['main']
paths:
- .gitmodules
- droid/**
- .docker/laptop/*
- .github/workflows/build_container_laptop_panda
workflow_dispatch:

env:
REGISTRY: ghcr.io
ORG_NAME: alexanderkhazatsky
IMAGE_NAME: droid_laptop

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:

- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Free Space
run: |
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf ${GITHUB_WORKSPACE}/.git
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: .docker/laptop/Dockerfile.laptop_panda
push: true
no-cache: true
tags: ${{ env.REGISTRY }}/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}:panda
51 changes: 51 additions & 0 deletions .github/workflows/build_container_nuc_fr3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build nuc fr3 container and host on ghcr.io

on:
push:
branches: ['main']
paths:
- .gitmodules
- droid/**
- .docker/nuc/*
- .github/workflows/build_container_nuc_fr3
workflow_dispatch:

env:
REGISTRY: ghcr.io
ORG_NAME: alexanderkhazatsky
IMAGE_NAME: droid_nuc

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: .docker/nuc/Dockerfile.nuc_fr3
push: true
no-cache: true
tags: ${{ env.REGISTRY }}/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}:fr3
51 changes: 51 additions & 0 deletions .github/workflows/build_container_nuc_panda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build nuc panda container and host on ghcr.io

on:
push:
branches: ['main']
paths:
- .gitmodules
- droid/**
- .docker/nuc/*
- .github/workflows/build_container_nuc_panda
workflow_dispatch:

env:
REGISTRY: ghcr.io
ORG_NAME: alexanderkhazatsky
IMAGE_NAME: droid_nuc

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: .docker/nuc/Dockerfile.nuc_panda
push: true
no-cache: true
tags: ${{ env.REGISTRY }}/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}:panda
59 changes: 59 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy Documentation

on:
push:
branches:
- "main"
paths:
- "docs/**"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Build job
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
working-directory: '${{ github.workspace }}/docs'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "docs/_site/"

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
22 changes: 22 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pre-commit

on:
workflow_dispatch:
schedule:
- cron: "0 9 * * 1"
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: pre-commit/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
extra_args: --files
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "droid/oculus_reader"]
path = droid/oculus_reader
url = [email protected]:rail-berkeley/oculus_reader.git
[submodule "droid/fairo"]
path = droid/fairo
url = https://github.com/facebookresearch/fairo.git
1 change: 1 addition & 0 deletions droid/fairo
Submodule fairo added at 0a01a7
1 change: 1 addition & 0 deletions droid/oculus_reader
Submodule oculus_reader added at de73f3

0 comments on commit 8679a05

Please sign in to comment.