Skip to content

Commit

Permalink
feat: Add aarch64-pc-windows-msvc releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Nov 22, 2023
1 parent 64924d4 commit 0f6558e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ builds:
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
hooks:
post: ./tools/goreleaser-dist.sh {{ .Target }}
checksum:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ release = '''set -e
cargo zigbuild --release --target x86_64-unknown-linux-gnu
cargo zigbuild --release --target aarch64-unknown-linux-gnu
cargo xwin build --release --target x86_64-pc-windows-msvc --xwin-arch x86_64
cargo xwin build --release --target aarch64-pc-windows-msvc --xwin-arch aarch64
git push
git push --tags
Expand Down
9 changes: 8 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[toolchain]
channel = "1.73.0"
components = ["rustfmt", "clippy", "llvm-tools-preview"]
targets = ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
targets = [
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
]
4 changes: 3 additions & 1 deletion tools/goreleaser-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ goTargetToRust() {
echo "aarch64-unknown-linux-gnu"
elif [[ "$target" == "windows_amd64_v1" ]]; then
echo "x86_64-pc-windows-msvc"
elif [[ "$target" == "windows_arm64" ]]; then
echo "aarch64-pc-windows-msvc"
else
echo "goreleaser-dist.sh is not prepared to handle builds for ${target}. Please update script."
exit 1
Expand All @@ -25,7 +27,7 @@ rm -rf "./dist/oatmeal_${target}"
mkdir -p "./dist/oatmeal_${target}"

rustbin="./target/$(goTargetToRust)/release/oatmeal"
if [[ "$target" == "windows_amd64_v1" ]]; then
if [[ "$target" == "windows_amd64_v1" ]] || [[ "$target" == "windows_arm64" ]]; then
rustbin="${rustbin}.exe"
fi

Expand Down
9 changes: 8 additions & 1 deletion tools/thirdparty/about.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ accepted = [
ignore-build-dependencies = true
ignore-dev-dependencies = true

targets = ["x86_64-apple-darwin", "aarch64-apple-darwin", "x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
targets = [
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
]

[x11rb.clarify]
license = "MIT"
Expand Down

0 comments on commit 0f6558e

Please sign in to comment.