Skip to content

Commit

Permalink
fixup: gha
Browse files Browse the repository at this point in the history
  • Loading branch information
cbgbt committed Oct 11, 2024
1 parent 461c78a commit 1183c10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ jobs:
# do agree on 'cat' and '$()' so we use that to marshal values between commands.
run: |
export PATH=$CARGO_HOME/bin:$PATH
# cargo-cross warns us that multiple cross configurations are present in our
# workspace, but it picks the appropriate one.
#
# These warnings cause the tool to fail, so we disable them.
export CROSS_NO_WARNINGS=0
# Actually do builds and make zips and whatnot
cargo dist build --tag="${GITHUB_REF_NAME}" --output-format=json ${MATRIX_DIST_ARGS} > dist-manifest.json
echo "dist ran successfully"
Expand Down
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ targets = ["x86_64-unknown-linux-musl", "aarch64-unknown-linux-musl"]
[workspace.metadata.cross.build]
pre-build = [
# install golang for krane-bundle
# "dpkg --add-architecture $CROSS_DEB_ARCH",
"apt update && apt --assume-yes install golang-1.22"
"apt update && apt --assume-yes install golang-1.22",
"update-alternatives --install /usr/bin/go go /usr/lib/go-1.22/bin/go 10",
# give the builder access to the go build and module caches
"mkdir /.cache && chmod a+rw /.cache",
"mkdir /go && chmod a+rw /go",
]

[workspace.dependencies]
Expand Down

0 comments on commit 1183c10

Please sign in to comment.