Skip to content

Commit

Permalink
Merge branch 'master' into add-docker-role-to-dev-env
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftfile authored Oct 25, 2023
2 parents 559404a + 3e93704 commit d7d6c0e
Show file tree
Hide file tree
Showing 198 changed files with 535,938 additions and 887 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/actions/cleanup_runner/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Cleanup Runner Image"
description: "Clean up runner"

runs:
using: "composite"
steps:
- name: cleanup
run: |
docker images
sudo rm -rf "/opt/ghc" || true
sudo rm -rf "/usr/share/dotnet" || true
sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true
sudo rm -rf "/usr/local/lib/android" || true
sudo rm -rf "/usr/local/share/boost" || true
docker rmi $(docker image ls -q --filter "reference=node*")
docker rmi $(docker image ls -q --filter "reference=debian*")
docker rmi $(docker image ls -q --filter "reference=alpine*")
docker rmi $(docker image ls -q --filter "reference=ubuntu:18.04")
docker rmi $(docker image ls -q --filter "reference=ubuntu:20.04")
sudo apt purge \
ansible \
aria2 \
azure-cli \
bazel \
cabal* \
clang* \
dotnet-sdk* \
ghc* \
google-chrome-stable \
google-cloud-sdk \
heroku \
kubectl \
mysql* \
node* \
npm* \
php* \
powershell \
rpm \
ruby* \
subversion \
yarn \
-yq >/dev/null 2>&1 || true
sudo apt-get autoremove -y >/dev/null 2>&1 || true
sudo apt-get autoclean -y >/dev/null 2>&1 || true
df -h
shell: bash
67 changes: 8 additions & 59 deletions .github/workflows/ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
jobs:
setup_dev_environment:
name: setup_dev_environment
runs-on: ubuntu-20.04
container: ubuntu:20.04
runs-on: ubuntu-22.04
container: ubuntu:22.04
steps:
- name: Get current date
id: date
Expand All @@ -26,14 +26,14 @@ jobs:
run: |
ansible-playbook --version
- uses: actions/checkout@v2-beta
- name: add password file
- name: make robotx_ws
run: |
echo ${{ secrets.VAULT_PASSWORD }} > password.txt
mkdir robotx_ws
- uses: actions/cache@v2
if: ${{ github.event.label.name != 'clean_build' }}
with:
path: robotx_ws
key: robotx_ws-${{ steps.date.outputs.date }}
path: robotx_ws/ccache
key: ccache-${{ steps.date.outputs.date }}
- name: ansible
run: |
ansible-playbook -i ansible/hosts/localhost.ini ansible/setup_dev_environment.yml --connection local --become -e ansible_user=ubuntu
Expand All @@ -51,67 +51,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
setup_docker_testbench:
name: setup_docker_testbench
runs-on: ubuntu-20.04
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: actions/checkout@v2-beta
- uses: actions/cache@v2
if: ${{ github.event.label.name != 'clean_build' }}
with:
path: docker/docker_testbench/mount_point/
key: sd-card-image-${{ steps.date.outputs.date }}
- name: basic install
run: |
sudo apt install make ansible
- name: ansible version
run: |
ansible-playbook --version
- name: run ansible and install docker
run: |
ansible-playbook -i ansible/hosts/localhost.ini ansible/setup_docker_testbench.yml --connection local --become -e ansible_user=ubuntu
- name: Notify Slack
uses: 8398a7/action-slack@v2
if: failure()
with:
status: ${{ job.status }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
setup_ml_pipeline:
name: setup_ml_pipeline
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2-beta
- name: basic install
run: |
sudo apt install ansible
- name: run ansible and install docker
run: |
ansible-galaxy install -fr ansible/roles/requirements.yml
ansible-playbook -i ansible/hosts/localhost.ini ansible/setup_ml_pipeline.yml --connection local --become -e ansible_user=ubuntu
- name: Notify Slack
uses: 8398a7/action-slack@v2
if: failure()
with:
status: ${{ job.status }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
setup_firmware:
name: setup_firmware
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2-beta
- name: basic install
run: |
sudo apt install ansible
- name: run ansible and install docker
run: |
ansible-galaxy install -fr ansible/roles/requirements.yml
ansible-playbook -i ansible/hosts/localhost.ini ansible/setup_mbed_workspace.yml --connection local --become -e ansible_user=ubuntu
- name: Notify Slack
uses: 8398a7/action-slack@v2
Expand All @@ -123,7 +72,7 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
setup_dataset:
name: setup_dataset
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2-beta
- name: basic install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
check_workflow_deployment:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
workflow_name:
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
get_template:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2-beta
- uses: actions/upload-artifact@v2
Expand All @@ -22,23 +22,24 @@ jobs:
path: ./workflow_templates/*.yaml
deploy_workflow:
needs: get_template
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
max-parallel: 2
fail-fast: false
matrix:
package_name: [
boost_geometry_util,
color_names,
copto_ros,
data_buffer,
detic_onnx_ros2,
dynamixel_hardware_interface,
geographic_conversion,
geographic_info,
geometry_msgs_data_buffer,
hermite_path_planner,
hungarian_solver,
image_processing_utils,
joy_to_twist,
lidar_camera_fusion,
lua_vendor,
message_synchronizer,
miniv_control,
Expand All @@ -56,7 +57,6 @@ jobs:
perception_server,
playstation_controller_drivers,
quaternion_operation,
realsense_hardware_interface,
robotx_behavior_tree,
robotx_communication,
robotx_costmap_calculator,
Expand All @@ -66,7 +66,6 @@ jobs:
scan_segmentation,
sol_vendor,
tcp_sender,
unisim_ros2_control,
usv_controller,
wamv_control,
wamv_description,
Expand All @@ -85,7 +84,7 @@ jobs:
with:
template: /home/runner/templates/BuildTest.yaml
project_path: ./
parameters: "{ \"rosdistro\" : \"galactic\" }"
parameters: "{}"
- name: Deploy release workflow
uses: OUXT-Polaris/[email protected]
with:
Expand All @@ -98,6 +97,12 @@ jobs:
template: /home/runner/templates/UpdateWorkflowStatus.yaml
project_path: ./
parameters: "{}"
- name: Deploy code review workflow
uses: OUXT-Polaris/[email protected]
with:
template: /home/runner/templates/Review.yaml
project_path: ./
parameters: "{}"
- name: Check branch exist
id: check_branch
run: |
Expand All @@ -111,9 +116,16 @@ jobs:
id: check_default_branch
run: |
echo "::set-output name=default_branch::$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')"
- name: Delete old branch
if: steps.check_branch.outputs.exist == 1
run: |
git push origin --delete workflow/sync; exit 0
- name: Print deleted branch
if: steps.check_branch.outputs.exist == 1
run: "echo 'Deleted branches: ${{ steps.delete_stuff.outputs.deleted_branches }}'"
- uses: peter-evans/create-pull-request@v3
id: create_pull_request
if: steps.check_branch.outputs.exist == 0 && steps.changes.outputs.count > 0
if: steps.changes.outputs.count > 0
with:
token: ${{ secrets.WAMV_TAN_BOT_SECRET }}
commit-message: Setup workflow
Expand All @@ -134,14 +146,5 @@ jobs:
assignees: wam-v-tan
reviewers: wam-v-tan
team-reviewers: |
owners
maintainers
bot
draft: false
- name: Enable Pull Request Automerge
if: steps.create_pull_request.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v1
with:
token: ${{ secrets.WAMV_TAN_BOT_SECRET }}
pull-request-number: ${{ steps.create_pull_request.outputs.pull-request-number }}
merge-method: squash
repository: OUXT-Polaris/${{ matrix.package_name }}
41 changes: 0 additions & 41 deletions .github/workflows/docker/ci_base/Dockerfile.foxy

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/docker/ci_base/Dockerfile.galactic

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/docker/ci_base/Dockerfile.humble

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/docker/ci_base/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/docker/ci_base/enable-preinstalled.sh

This file was deleted.

Loading

0 comments on commit d7d6c0e

Please sign in to comment.