Merge Model-ROS into master #3
This file contains hidden or 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
| # .github/workflows/colcon-build.yml | |
| name: Build in Devcontainer 🚀 | |
| # Controls when the workflow will run | |
| on: | |
| # Triggers the workflow on push events for the main branch | |
| push: | |
| branches: [ "main", "master" ] | |
| # Triggers the workflow on pull request events for the main branch | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| build: | |
| name: Colcon Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| # Uses the devcontainers/ci action to build the devcontainer and run commands | |
| # This action automatically finds your .devcontainer/devcontainer.json, | |
| # builds the Docker image, starts the container, and executes the specified command. | |
| - name: Build workspace in Devcontainer | |
| uses: devcontainers/ci@v0.3 | |
| with: | |
| runCmd: | | |
| echo "--- Building ROS 2 workspace ---" | |
| colcon build --symlink-install --event-handlers console_direct+ |