From 21d50d7c31fa3d5d8940c091ed0444748b5219e6 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 24 Sep 2025 12:29:03 -0700 Subject: [PATCH] feat: add ARM64 Windows build target (#4237) Signed-off-by: Saleem Abdulrasool --- .goreleaser.yaml | 2 +- test/install/1_download_snapshot_asset_test.sh | 2 ++ test/install/3_install_asset_test.sh | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 957aca6c6..bb278f1a9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -42,7 +42,7 @@ builds: dir: ./cmd/syft binary: syft goos: [windows] - goarch: [amd64] + goarch: [amd64, arm64] mod_timestamp: *build-timestamp ldflags: *build-ldflags diff --git a/test/install/1_download_snapshot_asset_test.sh b/test/install/1_download_snapshot_asset_test.sh index 8a8439817..0590f1ce6 100755 --- a/test/install/1_download_snapshot_asset_test.sh +++ b/test/install/1_download_snapshot_asset_test.sh @@ -104,6 +104,8 @@ run_test_case test_positive_snapshot_download_asset "darwin" "arm64" "tar.gz" run_test_case test_positive_snapshot_download_asset "windows" "amd64" "sbom" run_test_case test_positive_snapshot_download_asset "windows" "amd64" "zip" +run_test_case test_positive_snapshot_download_asset "windows" "arm64" "sbom" +run_test_case test_positive_snapshot_download_asset "windows" "arm64" "zip" # note: the mac signing process produces a dmg which is not part of the snapshot process (thus is not exercised here) # let's make certain we covered all assets that were expected diff --git a/test/install/3_install_asset_test.sh b/test/install/3_install_asset_test.sh index 02fa76300..225d5370b 100755 --- a/test/install/3_install_asset_test.sh +++ b/test/install/3_install_asset_test.sh @@ -99,6 +99,7 @@ run_test_case test_positive_snapshot_install_asset "linux" "s390x" "tar.gz" run_test_case test_positive_snapshot_install_asset "darwin" "amd64" "tar.gz" run_test_case test_positive_snapshot_install_asset "darwin" "arm64" "tar.gz" run_test_case test_positive_snapshot_install_asset "windows" "amd64" "zip" +run_test_case test_positive_snapshot_install_asset "windows" "arm64" "zip" # let's make certain we covered all assets that were expected run_test_case test_install_asset_exercised_all_archive_assets