mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
fix(workflows): cargo wrapper should try to source .cargo/env if it exists
This commit is contained in:
6
.github/workflows/check.yml
vendored
6
.github/workflows/check.yml
vendored
@ -199,6 +199,10 @@ jobs:
|
|||||||
- name: install ${{ matrix.platform.deps }} dependencies
|
- name: install ${{ matrix.platform.deps }} dependencies
|
||||||
run: ./hack/ci/install-${{ matrix.platform.deps }}-deps.sh
|
run: ./hack/ci/install-${{ matrix.platform.deps }}-deps.sh
|
||||||
- name: dump env
|
- name: dump env
|
||||||
run: env
|
run: |
|
||||||
|
env
|
||||||
|
- name: Setup tmate session
|
||||||
|
uses: mxschmitt/action-tmate@v3
|
||||||
|
if: ${{ matrix.platform.os == 'darwin' }}
|
||||||
- name: cargo build kratactl
|
- name: cargo build kratactl
|
||||||
run: ./hack/build/cargo.sh build --bin kratactl
|
run: ./hack/build/cargo.sh build --bin kratactl
|
||||||
|
@ -15,5 +15,10 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v cargo > /dev/null && [ -f "${HOME}/.cargo/env" ]
|
||||||
|
then
|
||||||
|
. "${HOME}/.cargo/env"
|
||||||
|
fi
|
||||||
|
|
||||||
export CARGO_BUILD_TARGET="${RUST_TARGET}"
|
export CARGO_BUILD_TARGET="${RUST_TARGET}"
|
||||||
exec "${CARGO}" "${@}"
|
exec "${CARGO}" "${@}"
|
||||||
|
Reference in New Issue
Block a user