mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-03 11:00:09 -05:00
ci: prevent accidental GOOS and GOARCH confusion in host go toolchain (#1632)
This commit is contained in:
parent
af9e03f66b
commit
52a1bb0a19
6
.github/actions/build_cdbg/action.yml
vendored
6
.github/actions/build_cdbg/action.yml
vendored
@ -21,13 +21,13 @@ runs:
|
|||||||
- name: Build cdbg
|
- name: Build cdbg
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GOOS: ${{ inputs.targetOS }}
|
TARGET_GOOS: ${{ inputs.targetOS }}
|
||||||
GOARCH: ${{ inputs.targetArch }}
|
TARGET_GOARCH: ${{ inputs.targetArch }}
|
||||||
OUTPUT_PATH: ${{ inputs.outputPath }}
|
OUTPUT_PATH: ${{ inputs.outputPath }}
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Build cdbg"
|
echo "::group::Build cdbg"
|
||||||
mkdir -p "$(dirname "${OUTPUT_PATH}")"
|
mkdir -p "$(dirname "${OUTPUT_PATH}")"
|
||||||
label="//debugd/cmd/cdbg:cdbg_${GOOS}_${GOARCH}"
|
label="//debugd/cmd/cdbg:cdbg_${TARGET_GOOS}_${TARGET_GOARCH}"
|
||||||
bazel build "${label}"
|
bazel build "${label}"
|
||||||
repository_root=$(git rev-parse --show-toplevel)
|
repository_root=$(git rev-parse --show-toplevel)
|
||||||
out_rel=$(bazel cquery --output=files "${label}")
|
out_rel=$(bazel cquery --output=files "${label}")
|
||||||
|
6
.github/actions/build_cli/action.yml
vendored
6
.github/actions/build_cli/action.yml
vendored
@ -43,8 +43,8 @@ runs:
|
|||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GOOS: ${{ inputs.targetOS }}
|
TARGET_GOOS: ${{ inputs.targetOS }}
|
||||||
GOARCH: ${{ inputs.targetArch }}
|
TARGET_GOARCH: ${{ inputs.targetArch }}
|
||||||
OUTPUT_PATH: ${{ inputs.outputPath || format('./build/constellation-{0}-{1}', inputs.targetOS, inputs.targetArch) }}
|
OUTPUT_PATH: ${{ inputs.outputPath || format('./build/constellation-{0}-{1}', inputs.targetOS, inputs.targetArch) }}
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Build CLI"
|
echo "::group::Build CLI"
|
||||||
@ -55,7 +55,7 @@ runs:
|
|||||||
else
|
else
|
||||||
cli_variant=oss
|
cli_variant=oss
|
||||||
fi
|
fi
|
||||||
label="//cli:cli_${cli_variant}_${GOOS}_${GOARCH}"
|
label="//cli:cli_${cli_variant}_${TARGET_GOOS}_${TARGET_GOARCH}"
|
||||||
bazel build "${label}"
|
bazel build "${label}"
|
||||||
repository_root=$(git rev-parse --show-toplevel)
|
repository_root=$(git rev-parse --show-toplevel)
|
||||||
out_rel=$(bazel cquery --output=files "${label}")
|
out_rel=$(bazel cquery --output=files "${label}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user