This commit is contained in:
HybridDog 2024-04-06 13:55:11 +02:00 committed by GitHub
commit aea57dfd03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 44 additions and 0 deletions

View File

@ -38,6 +38,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install deps
run: |
source ./util/ci/common.sh
@ -59,6 +63,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install deps
run: |
source ./util/ci/common.sh
@ -83,6 +91,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install deps
run: |
source ./util/ci/common.sh
@ -105,6 +117,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install deps
run: |
source ./util/ci/common.sh
@ -131,6 +147,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install deps
run: |
source ./util/ci/common.sh

View File

@ -20,6 +20,11 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Install deps
run: |
source ./util/ci/common.sh
@ -44,6 +49,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1.5"
@ -51,6 +60,7 @@ jobs:
- name: Install LuaJIT
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
cd $HOME
git clone https://github.com/LuaJIT/LuaJIT/
cd LuaJIT

View File

@ -62,6 +62,8 @@ cmake_args=(
-DENABLE_GETTEXT=1
-DENABLE_LEVELDB=1
)
# Use ccache if it is available
command -v ccache >/dev/null && cmake_args+=(-DCMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache)
add_cmake_libs
cmake -S $sourcedir -B build "${cmake_args[@]}"

View File

@ -62,6 +62,8 @@ cmake_args=(
-DENABLE_GETTEXT=1
-DENABLE_LEVELDB=1
)
# Use ccache if it is available
command -v ccache >/dev/null && cmake_args+=(-DCMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache)
add_cmake_libs
cmake -S $sourcedir -B build "${cmake_args[@]}"

View File

@ -1,6 +1,11 @@
#!/bin/bash -e
# Use ccache if it is available
extra_args=()
command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache)
cmake -B build \
"${extra_args[@]}" \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug} \
-DENABLE_LTO=FALSE \
-DRUN_IN_PLACE=TRUE \

View File

@ -1,10 +1,15 @@
#! /bin/bash -eu
# Use ccache if it is available
extra_args=()
command -v ccache >/dev/null && extra_args+=(-DCMAKE_{C,CXX}_COMPILER_LAUNCHER=ccache)
cd /tmp
git clone --recursive https://github.com/jupp0r/prometheus-cpp
mkdir prometheus-cpp/build
cd prometheus-cpp/build
cmake .. \
"${extra_args[@]}" \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TESTING=0