mirror of
https://github.com/araxiaonline/share-gh-workflows.git
synced 2026-06-13 02:22:20 -04:00
added shell to run statements
This commit is contained in:
5
.github/actions/build-tag-release/action.yml
vendored
5
.github/actions/build-tag-release/action.yml
vendored
@@ -32,14 +32,17 @@ runs:
|
||||
|
||||
- name: Get repository name
|
||||
id: repo-name
|
||||
shell: bash
|
||||
run: echo "REPO_NAME=$(basename $GITHUB_REPOSITORY | sed 's|.*/||')" >> $GITHUB_ENV
|
||||
|
||||
- name: Copy module to container
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p /azerothcore/modules/${{ env.REPO_NAME }}
|
||||
cp -r . /azerothcore/modules/${{ env.REPO_NAME }}
|
||||
|
||||
- name: Rebuild Modules with Caching
|
||||
shell: bash
|
||||
run: |
|
||||
cd /azerothcore/build \
|
||||
&& cmake /azerothcore \
|
||||
@@ -58,9 +61,11 @@ runs:
|
||||
&& cmake --build . --config "RelWithDebInfo" -j $(($(nproc) + 1))
|
||||
|
||||
- name: Install cppcheck
|
||||
shell: bash
|
||||
run: apt-get update && apt-get install -y cppcheck
|
||||
|
||||
- name: cpp check
|
||||
shell: bash
|
||||
run: |
|
||||
cppcheck --force --inline-suppr --output-file=report.txt /azerothcore/modules/${{ env.REPO_NAME }}
|
||||
if [ -s report.txt ]; then
|
||||
|
||||
Reference in New Issue
Block a user