automatic merge triggered by jenkins to include upstream (ros/rosdist… #808
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
--- | |
name: Generate Cache | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- 'scripts/**' | |
- '.github/**' | |
- '.devcontainer/**' | |
branches: [master] | |
pull_request: | |
paths-ignore: | |
- 'scripts/**' | |
- '.github/**' | |
- '.devcontainer/**' | |
branches: [master] | |
jobs: | |
generate_cache: | |
name: Generating Cache | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
distro: [melodic, noetic, humble] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install ros-buildfarm | |
- name: Generate cache for ${{ matrix.distro }} | |
run: | | |
rosdistro_build_cache https://raw.githubusercontent.com/LCAS/rosdistro/master/index.yaml \ | |
${{ matrix.distro }} --ignore-local || \ | |
rosdistro_build_cache https://raw.githubusercontent.com/LCAS/rosdistro/master/index.yaml \ | |
${{ matrix.distro }} --debug --ignore-local | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: caches-${{ matrix.distro }} | |
path: '*-cache.yaml*' | |
- name: Nexus Repo Publish | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
uses: sonatype-nexus-community/nexus-repo-github-action@master | |
with: | |
serverUrl: https://lcas.lincoln.ac.uk/repository/ | |
username: ${{ secrets.LCAS_REGISTRY_PUSHER }} | |
password: ${{ secrets.LCAS_REGISTRY_TOKEN }} | |
format: raw | |
repository: misc | |
coordinates: directory=roscache | |
assets: filename=${{ matrix.distro }}-cache.yaml.gz | |
filename: ./${{ matrix.distro }}-cache.yaml.gz |