Skip to content

Commit

Permalink
Add proper working directories to workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Abrahão <[email protected]>
  • Loading branch information
patrickpa committed May 22, 2024
1 parent 202cb9e commit b21a109
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-on-change-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Create dependencies build space
run: mkdir dependencies
shell: bash

- name: Install dependencies
working-directory: dependencies
run: |
echo Installing dev_essential...
git clone https://github.com/cariad-tech/dev_essential.git
cd dev_essential
echo Installing google test...
USERNAME=$whoami
cmake -H. -B"/home/$USERNAME/dev_essential/build" \
-G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="/home/$USERNAME/dev_essential/install" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build "/home/USERNAME/dev_essential/build" \
--target install \
--config RelWithDebInfo
echo Installing google test...
git clone https://github.com/google/googletest.git -b release-1.10.0
cd googletest
mkdir build
Expand All @@ -64,6 +69,7 @@ jobs:
shell: bash

- name: Build framework
working-directory: qc-framework
run: |
echo Building framework...
USERNAME=$whoami
Expand Down

0 comments on commit b21a109

Please sign in to comment.