From c92bee44622dbe5032265c3d8641516d79535cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Tamb=C3=A8?= Date: Mon, 30 Oct 2023 14:20:29 +0100 Subject: [PATCH] ci: 18 CI workflow test --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06f4ed0e..abb72a5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,14 +111,9 @@ jobs: echo "TEMP_DIR=$(mktemp -d)" >> $GITHUB_ENV echo "${{ env.TEMP_DIR}} >> ${{ env.TEMP_DIR}}" - - name: pwd - shell: bash - run: | - pwd - echo 'PWD === $PWD' - + #./../../zenoh - name: Clone Repository - run: git clone -b '0.7.2-rc' https://github.com/eclipse-zenoh/zenoh.git ./../../zenoh + run: git clone -b '0.7.2-rc' https://github.com/eclipse-zenoh/zenoh.git # - if: matrix.os == 'macOS-latest' # name: Free Disk Space (macOS) @@ -135,6 +130,11 @@ jobs: # if set to "true" but frees about 6 GB tool-cache: true + - name: Print current working dir + run: | + ls -la $PWD + ls -la $GITHUB_WORKSPACE + # - name: Free Disk Space (Ubuntu) # uses: jlumbroso/free-disk-space@main # with: @@ -142,20 +142,25 @@ jobs: # # if set to "true" but frees about 6 GB # tool-cache: true - - name: Change directory --> from Zenoh-Flow to Home directory - shell: bash - run: | - cd .. - pwd + # - name: Change directory --> from Zenoh-Flow to Home directory + # shell: bash + # run: | + # cd .. + # pwd - - name: dump - shell: bash + - name: Print current working dir run: | - echo "{path}" >> $GITHUB_PATH - echo "$PATH" + ls -la $PWD + ls -la $GITHUB_WORKSPACE - name: Set path - run: echo "ZENOHD_PATH=$(echo $PWD/zenoh/target/debug/zenohd )" >> $GITHUB_ENV + run: | + echo '{{ runner.workspace }}/zenoh/target/debug/zenohd === ${{ runner.workspace }}/zenoh/target/debug/zenohd' + echo '{{ runner.workspace }}/release/debug/zfctl === ${{ runner.workspace }}/release/debug/zfctl' + echo "ZENOHD_PATH=${{ runner.workspace }}/zenoh/target/debug/zenohd" >> $GITHUB_ENV + echo "ZFCTL_PATH=${{ runner.workspace }}/release/debug/zfctl" >> $GITHUB_ENV + echo ${{env.ZENOHD_PATH}} + echo ${{env.ZFCTL_PATH}} - name: Build Zenoh run: cargo build --all-targets @@ -172,4 +177,4 @@ jobs: - name: Run Python automated-test.py script run: | - output=$(python3 manual-tests/automated-test.py --build release --zenohd zenoh/target/debug/zenohd --zfctl zenoh-flow/release/debug/zfctl) + output=$(python3 manual-tests/automated-test.py --build release --zenohd ${{env.ZENOHD_PATH}} --zfctl ${{ runner.workspace }}/release/debug/zfctl)