Skip to content

Commit

Permalink
add cmake run
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Sep 7, 2023
1 parent 85b5f2e commit 2d9162e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Install dependencies
run: |
dnf install -y cmake ccache
dnf install -y cmake ccache gcc-c++ libtoml
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
Expand All @@ -29,7 +29,20 @@ jobs:
- name: ccache cache files
uses: actions/cache@v3
with:
path: .ccache
path: .ccache${{github.workspace}}
key: ${ { matrix.config.name } }-ccache-${ { steps.ccache_cache_timestamp.outputs.timestamp } }
restore-keys: |
${ { matrix.config.name } }-ccache-
- name: Create ccache symlinks to prioritize it over gcc
run: |
ln -s /usr/bin/ccache /usr/local/bin/gcc
ln -s /usr/bin/ccache /usr/local/bin/g++
ln -s /usr/bin/ccache /usr/local/bin/cc
ln -s /usr/bin/ccache /usr/local/bin/c++
- name: Configure cmake
run: mkdir build; cmake ${{github.workspace}}/build

- name: Build dnf5
run: mkdir build; cmake --build ${{github.workspace}}/build

0 comments on commit 2d9162e

Please sign in to comment.