Skip to content

Commit

Permalink
use relpath in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yandy committed Jun 11, 2022
1 parent 8f28c72 commit ffcadda
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- working-directory: ${{github.workspace}}/dockerfiles/devel
- working-directory: ./dockerfiles/devel
run: |
set -e
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
pack: [deb, rpm]
steps:
- uses: actions/checkout@v2
- working-directory: ${{github.workspace}}/dockerfiles/pack
- working-directory: ./dockerfiles/pack
run: |
set -e
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
container: ghcr.io/sdustio/spotng:pack-${{ matrix.suffix }}
strategy:
matrix:
pack: [DEB RPM]
pack: [DEB, RPM]
include:
- pack: DEB
suffix: deb
Expand All @@ -21,7 +21,7 @@ jobs:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
CMAKE_BUILD: ${{github.workspace}}/build
CMAKE_BUILD: ./build

steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
run: sudo apt install -y cppcheck
- name: run clang-format
run: |
find ${{github.workspace}}/include -name '*.h' -print | xargs clang-format -n -Werror && \
find ${{github.workspace}}/source -name '*.h' -print | xargs clang-format -n -Werror && \
find ${{github.workspace}}/source -name '*.cc' -print | xargs clang-format -n -Werror
find ./include -name '*.h' -print | xargs clang-format -n -Werror && \
find ./source -name '*.h' -print | xargs clang-format -n -Werror && \
find ./source -name '*.cc' -print | xargs clang-format -n -Werror
- name: run cppcheck
run: cppcheck --std=c++17 --quiet --enable=performance,portability ${{github.workspace}}/source
run: cppcheck --std=c++17 --quiet --enable=performance,portability ./source
test:
name: test-${{ matrix.cc }}
runs-on: ubuntu-latest
Expand All @@ -39,9 +39,8 @@ jobs:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
CMAKE_BUILD: ${{github.workspace}}/build
CCACHE_BASEDIR: ${{github.workspace}}
CCACHE_DIR: ${{github.workspace}}/.cache
CMAKE_BUILD: ./build
CCACHE_DIR: ./.cache
CCACHE_COMPRESS: "true"
CCACHE_COMPRESSLEVEL: "6"
CCACHE_MAXSIZE: 600M
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cmake.configureSettings": {
"CMAKE_TOOLCHAIN_FILE": "${env:VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
"cmake.generator": "Unix Makefiles"
}

0 comments on commit ffcadda

Please sign in to comment.