Skip to content

Commit

Permalink
Set action references to testing branch and disable non-linux ci
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sanchez-Mateos <[email protected]>
  • Loading branch information
rsanchez15 committed Jul 16, 2024
1 parent cc62caf commit 252cc02
Show file tree
Hide file tree
Showing 8 changed files with 167 additions and 177 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ concurrency:

jobs:
mac-ci:
if: ${{ (
!contains(github.event.pull_request.labels.*.name, 'skip-ci') &&
!contains(github.event.pull_request.labels.*.name, 'conflicts')
) }}
if: false
uses: ./.github/workflows/reusable-mac-ci.yml
with:
label: ${{ inputs.label || 'mac-ci' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: Mirror action step
id: mirror
uses: eProsima/eProsima-CI/external/mirror-branch-action@v0
uses: eProsima/eProsima-CI/external/mirror-branch-action@hotfix/setup-python-venv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'master'
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,45 +50,45 @@ jobs:
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
uses: eProsima/eProsima-CI/external/add_labels@hotfix/setup-python-venv
with:
labels: ci-pending
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS

- name: Sync eProsima/Fast-DDS repository
uses: eProsima/eProsima-CI/external/checkout@v0
uses: eProsima/eProsima-CI/external/checkout@hotfix/setup-python-venv
with:
path: src/fastdds
ref: ${{ inputs.fastdds-branch }}

- uses: eProsima/eProsima-CI/external/setup-python@v0
- uses: eProsima/eProsima-CI/external/setup-python@hotfix/setup-python-venv
with:
python-version: '3.11'

- name: Get minimum supported version of CMake
uses: eProsima/eProsima-CI/external/get-cmake@v0
uses: eProsima/eProsima-CI/external/get-cmake@hotfix/setup-python-venv
with:
cmakeVersion: '3.22.6'

- name: Install brew dependencies
uses: eProsima/eProsima-CI/macos/install_brew_packages@v0
uses: eProsima/eProsima-CI/macos/install_brew_packages@hotfix/setup-python-venv
with:
packages: llvm asio tinyxml2 [email protected]
update: false
upgrade: false

- name: Install colcon
uses: eProsima/eProsima-CI/multiplatform/install_colcon@v0
uses: eProsima/eProsima-CI/multiplatform/install_colcon@hotfix/setup-python-venv

- name: Install Python dependencies
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@hotfix/setup-python-venv
with:
packages: vcstool xmlschema
upgrade: false

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
uses: eProsima/eProsima-CI/external/setup-ccache-action@hotfix/setup-python-venv
if: ${{ inputs.use-ccache == true }}
with:
api_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -109,14 +109,14 @@ jobs:
# which entails logout/login or rebooting the machine. This is not feasible in a CI environment.

- name: Fetch Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
uses: eProsima/eProsima-CI/multiplatform/vcs_import@hotfix/setup-python-venv
with:
vcs_repos_file: ${{ github.workspace }}/src/fastdds/fastdds.repos
destination_workspace: src
skip_existing: 'true'

- name: Fetch Fast DDS CI dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
uses: eProsima/eProsima-CI/multiplatform/vcs_import@hotfix/setup-python-venv
with:
vcs_repos_file: ${{ github.workspace }}/src/fastdds/.github/workflows/config/fastdds_test.repos
destination_workspace: src
Expand All @@ -128,7 +128,7 @@ jobs:
# - Not working solution: https://github.com/macports/macports-ports/pull/21839/files
- name: Colcon build
continue-on-error: false
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_build@hotfix/setup-python-venv
with:
colcon_meta_file: ${{ github.workspace }}/src/fastdds/.github/workflows/config/fastdds_build.meta ${{ github.workspace }}/src/fastdds/.github/workflows/config/fastdds_test.meta
colcon_build_args: ${{ inputs.colcon-args }}
Expand All @@ -140,7 +140,7 @@ jobs:
- name: Colcon test
id: test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_test@hotfix/setup-python-venv
with:
colcon_meta_file: ${{ github.workspace }}/src/fastdds/.github/workflows/config/fastdds_test.meta
colcon_test_args: ${{ inputs.colcon-args }}
Expand All @@ -151,7 +151,7 @@ jobs:
test_report_artifact: ${{ format('test_report_{0}_{1}_{2}', inputs.label, github.job, join(matrix.*, '_')) }}

- name: Test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@v0
uses: eProsima/eProsima-CI/multiplatform/junit_summary@hotfix/setup-python-venv
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
junit_reports_dir: "${{ steps.test.outputs.ctest_results_path }}"
Expand Down
Loading

0 comments on commit 252cc02

Please sign in to comment.