Skip to content

Commit

Permalink
Obtain arch with $(uname -m) over using rustc --print target-spec-json
Browse files Browse the repository at this point in the history
It is nightly option
  • Loading branch information
azat committed Apr 4, 2024
1 parent 821c715 commit ceb06cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
declare -A mapping
mapping[chdig*.x86_64.rpm]=chdig-latest.x86_64.rpm
mapping[chdig*-x86_64.pkg.tar.zst]=chdig-latest-x86_64.pkg.tar.zst
mapping[chdig*-x86_64.tar.gz]=chdig-latest-x86_64.tar.gz
mapping[chdig*_amd64.deb]=chdig-latest_amd64.deb
mapping[chdig*_amd64.tar.gz]=chdig-latest_amd64.tar.gz
for pattern in "${!mapping[@]}"; do
cp $pattern ${mapping[$pattern]}
done
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

debug ?=
target ?= $(shell rustc -vV | sed -n 's|host: ||p')
arch = $(shell rustc -Z unstable-options --print target-spec-json | jq -r .arch)
arch = $(shell uname -m)

# Version normalization for deb/rpm:
# - trim "v" prefix
Expand Down

0 comments on commit ceb06cd

Please sign in to comment.