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 64a7b6c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
21 changes: 15 additions & 6 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,7 +40,6 @@ jobs:
ref: main
fetch-depth: 0
submodules: recursive
token: ${{ secrets.GH_TOKEN }}

- name: Checkout kpsr-build submodule
run: |
Expand Down
21 changes: 15 additions & 6 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,16 +31,11 @@ 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: |
Expand All @@ -38,4 +47,4 @@ jobs:
run: |
mkdir build && cd build
cmake ../
make format
make formatcheck

0 comments on commit 64a7b6c

Please sign in to comment.