mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-27 22:19:54 +00:00
fix: use GITHUB_WORKSPACE env var instead of template in containers
${{ github.workspace }} template expands to host path at parse time,
but inside Docker containers the actual workspace path is different.
Use $GITHUB_WORKSPACE environment variable which is correct at runtime.
This commit is contained in:
1 parent
ce1ca5141a
commit
c7a7ac7c87
1 file changed
+8
-4
@@ -180,17 +180,19 @@ jobs:
|
||||
|
||||
# Build the template from within the SDK workspace context
|
||||
# Templates use workspace inheritance and can't be built standalone
|
||||
# Note: Use $GITHUB_WORKSPACE env var, not ${{ github.workspace }} template
|
||||
# because inside containers the template expands to host path which doesn't exist
|
||||
- name: Compile the template node
|
||||
run: |
|
||||
. "$HOME/.cargo/env"
|
||||
cd ${{ github.workspace }}
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
cargo build --release -p ${{ matrix.package }}
|
||||
timeout-minutes: 120
|
||||
|
||||
- name: Check that the binary is executable
|
||||
run: |
|
||||
. "$HOME/.cargo/env"
|
||||
cd ${{ github.workspace }}
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
cargo run --release -p ${{ matrix.package }} -- --help
|
||||
timeout-minutes: 5
|
||||
|
||||
@@ -312,16 +314,18 @@ jobs:
|
||||
|
||||
# Build the template from within the SDK workspace context
|
||||
# Templates use workspace inheritance and can't be built standalone
|
||||
# Note: Use $GITHUB_WORKSPACE env var, not ${{ github.workspace }} template
|
||||
# because inside containers the template expands to host path which doesn't exist
|
||||
- name: Compile the template node
|
||||
run: |
|
||||
. "$HOME/.cargo/env"
|
||||
cd ${{ github.workspace }}
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
cargo build --release -p ${{ matrix.package }}
|
||||
timeout-minutes: 120
|
||||
|
||||
- name: Check that the binary is executable
|
||||
run: |
|
||||
. "$HOME/.cargo/env"
|
||||
cd ${{ github.workspace }}
|
||||
cd "$GITHUB_WORKSPACE"
|
||||
cargo run --release -p ${{ matrix.package }} -- --help
|
||||
timeout-minutes: 5
|
||||
Reference in new issue
Block a user