Skip to content

migrate conan 1 to conan 2 #169

migrate conan 1 to conan 2

migrate conan 1 to conan 2 #169

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build:
if: ${{ github.repository == 'Netflix-Skunkworks/atlas-system-agent' }}
runs-on: ubuntu-latest
strategy:
matrix:
agent: [system, titus]
steps:
- uses: actions/checkout@v4
- name: Install System Dependencies
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get install -y binutils-dev g++-13 libcap-dev libiberty-dev
# ==== atlas-system-agent ====
- name: Restore Conan Cache (system)
if: ${{ startsWith(matrix.agent, 'system') }}
id: conan-cache-restore-system
uses: actions/cache/restore@v4
with:
path: |
/home/runner/.conan2
/home/runner/work/atlas-system-agent/atlas-system-agent/cmake-build
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/spectator
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/tools
key: ${{ runner.os }}-conan-system
- name: Build atlas-system-agent
if: ${{ startsWith(matrix.agent, 'system') }}
run: |
./setup-venv.sh
source venv/bin/activate
TITUS_SYSTEM_SERVICE=OFF ./build.sh
- name: Save Conan Cache (system)
if: ${{ startsWith(matrix.agent, 'system') }}
id: conan-cache-save-system
uses: actions/cache/save@v4
with:
path: |
/home/runner/.conan2
/home/runner/work/atlas-system-agent/atlas-system-agent/cmake-build
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/spectator
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/tools
key: ${{ steps.conan-cache-restore-system.outputs.cache-primary-key }}
# ==== atlas-titus-agent ====
- name: Restore Conan Cache (titus)
if: ${{ startsWith(matrix.agent, 'titus') }}
id: conan-cache-restore-titus
uses: actions/cache/restore@v4
with:
path: |
/home/runner/.conan2
/home/runner/work/atlas-system-agent/atlas-system-agent/cmake-build
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/spectator
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/tools
key: ${{ runner.os }}-conan-titus
- name: Build atlas-titus-agent
if: ${{ startsWith(matrix.agent, 'titus') }}
run: |
./setup-venv.sh
source venv/bin/activate
TITUS_SYSTEM_SERVICE=ON ./build.sh
- name: Save Conan Cache (titus)
if: ${{ startsWith(matrix.agent, 'titus') }}
id: conan-cache-save-titus
uses: actions/cache/save@v4
with:
path: |
/home/runner/.conan2
/home/runner/work/atlas-system-agent/atlas-system-agent/cmake-build
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/spectator
/home/runner/work/atlas-system-agent/atlas-system-agent/lib/tools
key: ${{ steps.conan-cache-restore-titus.outputs.cache-primary-key }}