Update includes to fix implicit defined warnings #688
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
name: Deploy to github pages | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 60 | |
steps: | |
- uses: ros-tooling/[email protected] | |
with: | |
required-ros-distributions: noetic | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true | |
submodules: recursive | |
- name: Move directory | |
run: | | |
mkdir -p $HOME/catkin_ws/src/soccerbot | |
mv $GITHUB_WORKSPACE/* $HOME/catkin_ws/src/soccerbot | |
- name: Install apt fast | |
run: | | |
sudo apt-get update | |
sudo apt-get install -q -y software-properties-common | |
sudo add-apt-repository ppa:apt-fast/stable -y | |
echo debconf apt-fast/maxdownloads string 16 | sudo debconf-set-selections | |
echo debconf apt-fast/dlflag boolean true | sudo debconf-set-selections | |
echo debconf apt-fast/aptmanager string apt-get | sudo debconf-set-selections | |
sudo apt-get install -q -y apt-fast | |
sudo apt-get clean | |
- name: Install ros dependencies | |
run: | | |
cd $HOME/catkin_ws/src/soccerbot | |
source /opt/ros/noetic/setup.bash | |
rosdep update | |
rosdep install --from-paths . --ignore-src -r -s | grep 'apt-get install' | awk '{print $5}' | sort > /tmp/catkin_install_list | |
sudo apt-fast install -y --no-install-recommends $(cat /tmp/catkin_install_list) | |
sudo apt-fast install -y python3-catkin-tools | |
- name: Install python dependencies | |
run: | | |
cd $HOME/catkin_ws/src/soccerbot | |
source /opt/ros/noetic/setup.bash | |
pip install pyOpenSSL==23.0.0 | |
pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --trusted-host=pytorch.org --trusted-host=download.pytorch.org --trusted-host=files.pypi.org --trusted-host=files.pytorch.org \ | |
-r requirements.txt --find-links https://download.pytorch.org/whl/torch_stable.html | |
- name: Build Soccerbot | |
run: | | |
cd $HOME/catkin_ws | |
source /opt/ros/noetic/setup.bash | |
catkin init | |
catkin build | |
- name: Build Sphinx Documentation | |
run: | | |
cd $HOME/catkin_ws/src/soccerbot/docs | |
source /opt/ros/noetic/setup.bash | |
source $HOME/catkin_ws/devel/setup.bash | |
pip install -r requirements.txt | |
roscore & | |
make html | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: /home/runner/catkin_ws/src/soccerbot/docs/_build/html | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
# Deployment job | |
deploy: | |
if: github.ref == 'refs/heads/master' | |
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@v1 |