Skip to content

Commit

Permalink
Clean github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisbf-kpsr committed Sep 27, 2023
1 parent 378952c commit fc7ecdc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 24 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2023 Klepsydra Technologies AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Projects check

on:
Expand All @@ -17,11 +31,7 @@ jobs:
name: Check ${{ matrix.name }}
runs-on: ubuntu-latest
container:
image: "ghcr.io/klepsydra-technologies/kpsrbase:1.0.0"
options: --user kpsruser -v /home/kpsruser/.ccache:/github/home/.ccache
credentials:
username: ${{ secrets.KPSR_REGISTRY_USER }}
password: ${{ secrets.KPSR_REGISTRY_PASSWORD }}
image: ghcr.io/klepsydra-technologies/kpsrbase:1.0.0
steps:
- name: Clone sources
uses: actions/checkout@v4
Expand All @@ -30,15 +40,11 @@ jobs:
ref: main
fetch-depth: 0
submodules: recursive
token: ${{ secrets.GH_TOKEN }}

- name: Checkout kpsr-build submodule
run: |
git checkout ${GITHUB_SHA}
git log -1
working-directory: kpsr-build
- uses: actions/checkout@v4

- name: Run cmake
- name: Builf
run: |
mkdir build && cd build
cmake ../
mkdir build && cd build/
cmake ..
make -j$(nproc)
29 changes: 19 additions & 10 deletions .github/workflows/style_check.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2023 Klepsydra Technologies AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Coding style checks

on:
Expand All @@ -17,25 +31,20 @@ jobs:
runs-on: ubuntu-latest
container:
image: "ghcr.io/klepsydra-technologies/kpsrbase:1.0.0"
options: --user kpsruser -v /home/kpsruser/.ccache:/github/home/.ccache
credentials:
username: ${{ secrets.KPSR_REGISTRY_USER }}
password: ${{ secrets.KPSR_REGISTRY_PASSWORD }}
steps:
- name: Clone sources
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}

- name: Checks cmake files format
run: |
mkdir build && cd build
cmake ../
mkdir build && cd build/
cmake ..
make cmake-format-check
- name: Checks clang format
run: |
mkdir build && cd build
cmake ../
make format
mkdir build && cd build/
cmake ..
make formatcheck

0 comments on commit fc7ecdc

Please sign in to comment.