Skip to content

Commit 1a8a63b

Browse files
committed
use relative paths to avoid incorrect contaxt values in containers (actions/runner#2058)
1 parent 40ddc9f commit 1a8a63b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/cmake.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,21 @@ jobs:
5858
apt -y update
5959
apt -y install ${{ matrix.install }}
6060
61-
- name: make build dir
62-
run: cmake -E make_directory ${{runner.workspace}}/build
63-
6461
- name: configure cmake
6562
env:
66-
TOOLCHAIN: ${{ matrix.toolchain && format('{0}/toolchains/{1}', github.workspace, matrix.toolchain) || '' }}
67-
run: cmake ${{matrix.cmake_opts}} -DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN}" -S ${{ github.workspace }} -B ${{github.workspace}}/build
63+
TOOLCHAIN: ${{ matrix.toolchain && format('./toolchains/{1}', matrix.toolchain) || '' }}
64+
run: cmake ${{matrix.cmake_opts}} -DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN}" -S . -B ./build
6865

6966
- name: build ziti-edge-tunnel bundle target
70-
run: cmake --build ${{github.workspace}}/build --target bundle --verbose
67+
run: cmake --build ./build --target bundle --verbose
7168

7269
- name: list bundle artifacts
7370
run: ls -R
74-
working-directory: ${{ github.workspace }}/build/bundle/
71+
working-directory: ./build/bundle/
7572

7673
- name: list program artifacts
7774
run: ls -R
78-
working-directory: ${{ github.workspace }}/build/programs/ziti-edge-tunnel/
75+
working-directory: ./build/programs/ziti-edge-tunnel/
7976

8077
- name: upload bundle artifacts
8178
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)