From 8c5acc0ef77b93478af3cbe9426376d6f85f0549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Fri, 18 Feb 2022 10:08:41 -0300 Subject: [PATCH 1/8] Create build-action.yml Add dummy action --- .github/workflows/build-action.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build-action.yml diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml new file mode 100644 index 0000000..d6da36b --- /dev/null +++ b/.github/workflows/build-action.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: build-action + +# Controls when the workflow will run +on: + pull_request: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-18.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 9941e81ec89b5843d16917fdded81a48d74b713c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Fri, 18 Feb 2022 10:26:24 -0300 Subject: [PATCH 2/8] Update build-action.yml First version of build-action --- .github/workflows/build-action.yml | 50 ++++++++++++++++-------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index d6da36b..7d3ddea 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -1,30 +1,34 @@ -# This is a basic workflow to help you get started with Actions - name: build-action -# Controls when the workflow will run -on: - pull_request: - branches: [ master ] +on: [pull_request] -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest + strategy: + fail-fast: false - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + - name: Setup Checkout autoproj CI + uses: actions/checkout@v2 + with: + repository: Brazilian-Institute-of-Robotics/bir-autoproj-action + ssh-key: ${{ secrets.AUTOPROJ_ACTION_TOKEN }} + - uses: ./ + with: + distro: bionic + buildconf-url: git@github.com:romulogcerqueira/sonar_simulation.git + packages: '${{ github.event.repository.name }}' + seed-config: | + --- + apt_dpkg_update: 'true' + osdeps_mode: all + GITORIOUS: ssh + GITHUB: ssh + ROCK_SELECTED_FLAVOR: master + ROCK_FLAVOR: master + ROCK_BRANCH: master + USE_OCL: false + rtt_corba_implementation: omniorb + rtt_target: gnulinux + cxx11: false From 0d78e9bb282305340d51cd2d5ef8b541c26cc586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Fri, 18 Feb 2022 11:00:58 -0300 Subject: [PATCH 3/8] Update build-action.yml Test --- .github/workflows/build-action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index 7d3ddea..76b398b 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -4,9 +4,11 @@ on: [pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: [self-hosted, linux, x64, default] strategy: fail-fast: false + matrix: + distro: [bionic] steps: - name: Setup Checkout autoproj CI @@ -16,7 +18,7 @@ jobs: ssh-key: ${{ secrets.AUTOPROJ_ACTION_TOKEN }} - uses: ./ with: - distro: bionic + distro: ${{ matrix.distro }} buildconf-url: git@github.com:romulogcerqueira/sonar_simulation.git packages: '${{ github.event.repository.name }}' seed-config: | From 80673383c4d8cb526659d6b144220ca214a78fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Fri, 18 Feb 2022 15:28:18 -0300 Subject: [PATCH 4/8] Update build-action.yml --- .github/workflows/build-action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index 76b398b..db754d2 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -4,6 +4,7 @@ on: [pull_request] jobs: build: + # test with my host machine runs-on: [self-hosted, linux, x64, default] strategy: fail-fast: false From 9a06e3e094dc53c372d75d592ba0c4a5d1cc6363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Fri, 18 Feb 2022 16:08:40 -0300 Subject: [PATCH 5/8] Update build-action.yml add python settings to seed-config --- .github/workflows/build-action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index db754d2..1f83730 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -35,3 +35,7 @@ jobs: rtt_corba_implementation: omniorb rtt_target: gnulinux cxx11: false + USE_PYTHON: true + PYTHONPATH: /usr/bin/python2.7 + python_executable: "/usr/bin/python" + python_version: 2 From b64db00634271d1c60620b841927d835555f6ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Wed, 23 Feb 2022 16:19:26 -0300 Subject: [PATCH 6/8] Update build-action.yml Update package to build --- .github/workflows/build-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index 1f83730..8a6c878 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -21,7 +21,7 @@ jobs: with: distro: ${{ matrix.distro }} buildconf-url: git@github.com:romulogcerqueira/sonar_simulation.git - packages: '${{ github.event.repository.name }}' + packages: 'simulation/normal_depth_map' seed-config: | --- apt_dpkg_update: 'true' From 7859b43eb66464ba657599b1276ae4afd20aecf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Wed, 23 Feb 2022 16:26:14 -0300 Subject: [PATCH 7/8] Update build-action.yml tests --- .github/workflows/build-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index 8a6c878..ad458f7 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -21,7 +21,7 @@ jobs: with: distro: ${{ matrix.distro }} buildconf-url: git@github.com:romulogcerqueira/sonar_simulation.git - packages: 'simulation/normal_depth_map' + packages: 'normal_depth_map' seed-config: | --- apt_dpkg_update: 'true' From 7754a162872ca7e79ffdfa4382197bf0e5dc02fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Cerqueira?= Date: Wed, 23 Feb 2022 16:31:32 -0300 Subject: [PATCH 8/8] Update build-action.yml --- .github/workflows/build-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-action.yml b/.github/workflows/build-action.yml index ad458f7..8a6c878 100644 --- a/.github/workflows/build-action.yml +++ b/.github/workflows/build-action.yml @@ -21,7 +21,7 @@ jobs: with: distro: ${{ matrix.distro }} buildconf-url: git@github.com:romulogcerqueira/sonar_simulation.git - packages: 'normal_depth_map' + packages: 'simulation/normal_depth_map' seed-config: | --- apt_dpkg_update: 'true'