Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Oct 10, 2023
1 parent 17999ea commit d7feb25
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/package-collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:

name: package ${{ matrix.distrib }} ${{ matrix.arch }}

#env:
# SCCACHE_GHA_ENABLED: "true"
env:
SCCACHE_GHA_ENABLED: "true"

steps:
- name: Checkout sources
Expand All @@ -80,12 +80,18 @@ jobs:

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Restore cache sccache
uses: actions/cache/restore@v3
with:
path: /github/home/.cache/sccache
key: sccache-${{ matrix.distrib }}-${{ matrix.arch }}
version: "v0.5.4"

# - name: Restore cache sccache
# uses: actions/cache/restore@v3
# with:
# path: /github/home/.cache/sccache
# key: sccache-${{ matrix.distrib }}-${{ matrix.arch }}-${{ github.ref_name }}-${{ github.run_id }}
# restore-keys: |
# sccache-${{ matrix.distrib }}-${{ matrix.arch }}-${{ github.ref_name }}
# sccache-${{ matrix.distrib }}-${{ matrix.arch }}-${{ github.head_ref }}
# sccache-${{ matrix.distrib }}-${{ matrix.arch }}

- name: Compile sources
run: |
Expand Down Expand Up @@ -137,11 +143,11 @@ jobs:
#ccache -s
shell: bash

- name: Cache sccache
uses: actions/cache/save@v3
with:
path: /github/home/.cache/sccache
key: sccache-${{ matrix.distrib }}-${{ matrix.arch }}
# - name: Cache sccache
# uses: actions/cache/save@v3
# with:
# path: /github/home/.cache/sccache
# key: sccache-${{ matrix.distrib }}-${{ matrix.arch }}

- name: Generate debug files
run: |
Expand Down
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_COLOR_DIAGNOSTICS ON)
cmake_minimum_required(VERSION 3.16)
#set(CMAKE_C_COMPILER "/usr/bin/ccache")
#set(CMAKE_CXX_COMPILER "/usr/bin/ccache")
#find_program(SCCACHE sccache REQUIRED)
#set(CMAKE_C_COMPILER_LAUNCHER ${SCCACHE})
#set(CMAKE_CXX_COMPILER_LAUNCHER ${SCCACHE})
project("Centreon Collect" C CXX)

option(WITH_ASAN
Expand Down

0 comments on commit d7feb25

Please sign in to comment.