Skip to content

Commit

Permalink
Some refactoring for easy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
franziska-wegner committed Jan 7, 2024
1 parent 18b9ff8 commit 8343f95
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:

env:
QT_VERSION: "6.2.0"
QT_ARCH: "gcc_64"

permissions:
contents: read
Expand Down Expand Up @@ -51,19 +52,13 @@ jobs:
cache-key-prefix: ${{ runner.os }}-Qt-Cache-${{ env.QT_VERSION }}
dir: ${{ github.workspace }}/Qt

- name: Echo Qt repo (temp only)
shell: bash
run: |
ls -la ${{ github.workspace }}/Qt/Qt/${{ env.QT_VERSION }}/gcc_64
ls -la ${{ github.workspace }}/Qt/Qt/${{ env.QT_VERSION }}/gcc_64/include
echo ${{ github.workspace }}/Qt/Qt/${{ env.QT_VERSION }}/gcc_64/include
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
echo "qt-include-dir=${{ github.workspace }}/Qt/Qt/${{ env.QT_VERSION }}/${{ env.QT_ARCH }}/include"
- name: Configure CMake
env:
Expand Down Expand Up @@ -135,7 +130,7 @@ jobs:
lines-changed-only: false
no-lgtm: false
repo-root: ${{ github.workspace }}
extra-args: "-I./include -I${{ github.workspace }}/Qt/Qt/${{ env.QT_VERSION }}/gcc_64/include"
extra-args: "-I./include -I${{ qt-include-dir }}"
# The following value will only update a single comment
# in a pull request's thread. Set it to false to disable the comment.
# Set it to true to post a new comment (and delete the old comment).
Expand Down

0 comments on commit 8343f95

Please sign in to comment.