Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,26 @@ builds:
env:
- QUILL_LOG_FILE=/tmp/quill-{{ .Target }}.log

- id: windows-build
dir: ./cmd/grant
binary: grant
goos: [windows]
goarch: [amd64, arm64]
mod_timestamp: *build-timestamp
ldflags: *build-ldflags

archives:
- id: linux-archives
builds:
ids:
- linux-build
- id: darwin-archives
builds:
ids:
- darwin-build
- id: windows-archives
formats:
- zip
ids:
- windows-build

nfpms:
- license: "Apache 2.0"
Expand Down
2 changes: 2 additions & 0 deletions tests/install/1_download_snapshot_asset_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ run_test_case test_positive_snapshot_download_asset "linux" "ppc64le" "rpm"
run_test_case test_positive_snapshot_download_asset "linux" "ppc64le" "deb"
run_test_case test_positive_snapshot_download_asset "darwin" "amd64" "tar.gz"
run_test_case test_positive_snapshot_download_asset "darwin" "arm64" "tar.gz"
run_test_case test_positive_snapshot_download_asset "windows" "amd64" "zip"
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
Expand Down
2 changes: 2 additions & 0 deletions tests/install/3_install_asset_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ run_test_case test_positive_snapshot_install_asset "linux" "s390x" "tar.gz"
run_test_case test_positive_snapshot_install_asset "linux" "ppc64le" "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
Expand Down
2 changes: 1 addition & 1 deletion tests/install/test_harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ snapshot_assets_archive_count() {
# ../../snapshot/grant_0.2.1-SNAPSHOT-e5e847a_linux_amd64.tar.gz
# ../../snapshot/grant_0.2.1-SNAPSHOT-e5e847a_darwin_amd64.tar.gz

echo "$(find ../../snapshot -maxdepth 1 -type f | grep 'grant_' | grep 'tar' | wc -l | tr -d '[:space:]')"
echo "$(find ../../snapshot -maxdepth 1 -type f | grep 'grant_' | grep 'tar\|zip' | wc -l | tr -d '[:space:]')"
}


Expand Down
Loading