Skip to content

try to fix getting docker on intel mac runners #17

try to fix getting docker on intel mac runners

try to fix getting docker on intel mac runners #17

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Conan
uses: actions/cache@v4
with:
path: ~/.conan2
key: conan-${{ runner.os }}-${{ hashFiles('**/conanfile.py') }}
restore-keys: |
conan-${{ runner.os }}-
- name: Install Conan
run: |
pip install conan
- name: Configure Conan for C++20
run: |
conan profile detect --force
# Override to C++20 (not gnu20 to match CMAKE_CXX_EXTENSIONS=OFF)
sed -i 's/compiler\.cppstd=.*/compiler.cppstd=20/' ~/.conan2/profiles/default || true
echo "compiler.cppstd=20" >> ~/.conan2/profiles/default || true
- name: Build project
run: |
chmod +x scripts/build.sh scripts/test.sh scripts/start-influxdb.sh scripts/stop-influxdb.sh
./scripts/build.sh Release
- name: Start InfluxDB
run: |
./scripts/start-influxdb.sh
- name: Run tests
run: |
./scripts/test.sh
- name: Stop InfluxDB
if: always()
run: |
./scripts/stop-influxdb.sh
macos:
runs-on: macos-13
# Note: macos-13 is Intel-based and will be deprecated Dec 2025. Docker is not available on any GitHub macOS runners.
# Integration tests run only on Linux. macOS job verifies build compiles on macOS.
steps:
- uses: actions/checkout@v4
- name: Cache Conan
uses: actions/cache@v4
with:
path: ~/.conan2
key: conan-${{ runner.os }}-${{ hashFiles('**/conanfile.py') }}
restore-keys: |
conan-${{ runner.os }}-
- name: Install Conan
run: |
pip install conan
- name: Configure Conan for C++20
run: |
conan profile detect --force
# Override to C++20 (not gnu20 to match CMAKE_CXX_EXTENSIONS=OFF)
sed -i '' 's/compiler\.cppstd=.*/compiler.cppstd=20/' ~/.conan2/profiles/default || true
echo "compiler.cppstd=20" >> ~/.conan2/profiles/default || true
- name: Build project
run: |
chmod +x scripts/build.sh scripts/test.sh scripts/start-influxdb.sh scripts/stop-influxdb.sh
./scripts/build.sh Release
- name: Skip integration tests (Docker unavailable on macOS)
run: |
echo "⚠️ Docker is not available on GitHub Actions macOS runners"
echo "Build completed successfully, but integration tests were skipped."
echo "For full test coverage, see the Linux runner which supports Docker natively."
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Cache Conan
uses: actions/cache@v4
with:
path: ~/.conan2
key: conan-${{ runner.os }}-${{ hashFiles('**/conanfile.py') }}
restore-keys: |
conan-${{ runner.os }}-
- name: Cache InfluxDB
uses: actions/cache@v4
with:
path: |
influxdb-1.8.10-1
influxdb-1.8.10_windows_amd64.zip
key: influxdb-1.8.10-windows-${{ runner.os }}
restore-keys: |
influxdb-1.8.10-windows-
- name: Install Conan
run: |
pip install conan
- name: Configure Conan for C++20
shell: bash
run: |
conan profile detect --force
# Override to C++20 for MSVC (uses simple "20" not "gnu20")
sed -i 's/compiler\.cppstd=.*/compiler.cppstd=20/' ~/.conan2/profiles/default || true
echo "compiler.cppstd=20" >> ~/.conan2/profiles/default || true
- name: Build project
run: |
scripts\build.bat Release
- name: Start InfluxDB
run: |
scripts\start-influxdb.bat
- name: Run tests
run: |
scripts\test.bat
- name: Stop InfluxDB
if: always()
run: |
scripts\stop-influxdb.bat