Skip to content

Migrate to GH actions #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 0 additions & 204 deletions .ci/Jenkinsfile

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Run Conan Examples

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
examples: ${{ steps.find.outputs.examples }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Find examples
id: find
run: |
examples=$(find . -name 'ci_test_example.*' | grep -E '\.py$|\.sh$' | sort | jq -R -s -c 'split("\n")[:-1]')
echo "examples=$examples" >> $GITHUB_OUTPUT

run-macos:
needs: prepare
runs-on: macos-14
strategy:
matrix:
branch: [ "conan", "develop2" ]
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install Conan and tools
run: |
pip install -e "git+https://github.com/conan-io/conan.git@${{ matrix.branch }}#egg=conan"
pip install meson

- name: Cache Homebrew packages
id: cache-brew
uses: actions/cache@v4
with:
path: ~/Library/Caches/Homebrew
key: ${{ runner.os }}-brew

- name: Install homebrew dependencies
run: |
brew install xcodegen make libtool zlib autoconf automake ninja

- name: Run examples
run: |
examples=${{ needs.prepare.outputs.examples }}
echo "$examples" | jq -r '.[]' | while read example; do
echo "Running $example"
dir=$(dirname "$example")
script=$(basename "$example")
cd "$dir"
chmod +x "$script"
./$(basename "$script") || exit 1
cd -
done
10 changes: 0 additions & 10 deletions .github/workflows/ros-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Update ROS signing key (per ROS migration guide)
run: |
sudo rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros2-latest-archive-keyring.gpg

- name: Configure environment and install Conan release
run: |
apt-get update && apt-get install -y python3 python3-pip
Expand All @@ -44,11 +39,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Update ROS signing key (per ROS migration guide)
run: |
sudo rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros2-latest-archive-keyring.gpg

- name: Configure environment and install Conan from develop2 branch
run: |
apt-get update && apt-get install -y python3 python3-pip
Expand Down
Loading