build_dependencies #170
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
# This job builds the dependencies of this repository every day | |
# This saves time in every action execution as it does not require to compile the dependencies | |
name: build_dependencies | |
on: | |
workflow_dispatch: | |
inputs: | |
fastdds_branch: | |
description: 'Branch or tag of Fast DDS repository (https://github.com/eProsima/Fast-DDS)' | |
required: true | |
default: 'master' | |
utils_branch: | |
description: 'Branch or tag of Dev Utils repository (https://github.com/eProsima/dev-utils)' | |
required: true | |
default: 'main' | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
windows-build: | |
runs-on: ${{ matrix.windows-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
cmake-config: | |
- 'Release' | |
- 'Debug' | |
windows-version: | |
- 'windows-2019' | |
- 'windows-2022' | |
env: | |
CXXFLAGS: /MP | |
OPENSSL64_ROOT: "C:/Program Files/OpenSSL-Win64" | |
steps: | |
- name: Sync eProsima/DDS-Pipe repository | |
uses: actions/checkout@v3 | |
with: | |
path: DDS-Pipe | |
- name: Install OpenSSL | |
uses: ./DDS-Pipe/.github/actions/install-openssl-windows | |
- name: Install eProsima dependencies | |
uses: ./DDS-Pipe/.github/actions/install-eprosima-dependencies-windows | |
env: | |
DEFAULT_FASTDDS_BRANCH: 'master' | |
DEFAULT_UTILS_BRANCH: 'main' | |
with: | |
cmake_build_type: ${{ matrix.cmake-config }} | |
fastdds_branch: ${{ github.event.inputs.fastdds_branch || env.DEFAULT_FASTDDS_BRANCH }} | |
utils_branch: ${{ github.event.inputs.utils_branch || env.DEFAULT_UTILS_BRANCH }} | |
- name: Upload binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.windows-version }}_${{ matrix.cmake-config }}_fastdds_install | |
path: ${{ github.workspace }}\eprosima\install | |
ubuntu-build: | |
runs-on: ${{ matrix.ubuntu-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ubuntu-version: | |
- 'ubuntu-20.04' | |
- 'ubuntu-22.04' | |
steps: | |
- name: Sync eProsima/DDS-Pipe repository | |
uses: actions/checkout@v3 | |
with: | |
path: src/DDS-Pipe | |
- name: Avoid DDS Pipe build | |
run: | | |
touch ./src/DDS-Pipe/COLCON_IGNORE | |
- name: Install apt packages | |
uses: ./src/DDS-Pipe/.github/actions/install-apt-packages | |
- name: Install Python packages | |
uses: ./src/DDS-Pipe/.github/actions/install-python-packages | |
- name: Fetch repositories | |
run: | | |
vcs import src < src/DDS-Pipe/.github/workflows/ci.repos | |
cd src/fastrtps && git checkout ${{ inputs.fastdds_branch }} && cd ../.. | |
cd src/dev-utils && git checkout ${{ inputs.utils_branch }} && cd ../.. | |
- name: Build workspace | |
run: | | |
colcon build --event-handlers=console_direct+ | |
- name: Upload binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.ubuntu-version }}_fastdds_install | |
path: install |