Skip to content

Commit

Permalink
ci: pin ubuntu-22.04 and use fixed conan profile
Browse files Browse the repository at this point in the history
  • Loading branch information
lammjo committed Feb 27, 2025
1 parent ce9b0d9 commit 4c46cb3
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ on:
jobs:
build:
name: Build up-transport-zenoh-cpp and dependencies
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Fetch up-transport-zenoh-cpp
uses: actions/checkout@v4
with:
path: up-transport-zenoh-cpp

- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 2.3.2

- name: Fetch up-transport-zenoh-cpp
uses: actions/checkout@v4
with:
path: up-transport-zenoh-cpp

- name: Install conan CI profile
shell: bash
run: |
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:

test:
name: Run up-transport-zenoh-cpp tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
Expand All @@ -115,10 +115,15 @@ jobs:

lint:
name: Lint C++ sources
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
- name: Fetch up-transport-zenoh-cpp
uses: actions/checkout@v4
with:
path: up-transport-zenoh-cpp

- name: Get build commands
uses: actions/download-artifact@v4
with:
Expand All @@ -127,9 +132,15 @@ jobs:
- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 2.3.2

- name: Create default Conan profile
run: conan profile detect
- name: Install conan CI profile
shell: bash
run: |
conan profile detect
cp up-transport-zenoh-cpp/.github/workflows/ci_conan_profile "$(conan profile path default)"
conan profile show
- name: Get conan cache
uses: actions/download-artifact@v4
Expand All @@ -141,11 +152,6 @@ jobs:
run: |
conan cache restore conan-cache.tgz
- name: Fetch up-transport-zenoh-cpp
uses: actions/checkout@v4
with:
path: up-transport-zenoh-cpp

- name: Run linters on source
id: source-linter
uses: cpp-linter/cpp-linter-action@v2
Expand Down Expand Up @@ -184,7 +190,7 @@ jobs:
# job to signal whether all CI checks have passed.
ci:
name: CI status checks
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
#needs: [build, test]
# NOTE tests are currently known failing. At this early stage, we will allow
# some PRs to merge without fixing those tests. This will be reverted in the
Expand Down

0 comments on commit 4c46cb3

Please sign in to comment.