Skip to content

Commit 1bf96a3

Browse files
author
Lisanna Dettwyler
committed
CI updates for release
Closes #1171 - Publish docker images -> ghcr.io - Deduplicate / normalize build and publish logic - Make sure release branches are getting verified correctly Closes #1184 - Cryptol binaries are no longer included in release tarballs Closes #982 - Clean version numbers for release
1 parent 088f4bc commit 1bf96a3

File tree

5 files changed

+149
-307
lines changed

5 files changed

+149
-307
lines changed

.github/ci.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,15 @@ build() {
119119
cp cabal.GHC-"$ghc_ver".config cabal.project.freeze
120120
cabal v2-update
121121
cabal v2-configure -j --enable-tests
122+
git status --porcelain
122123
pkgs=(saw)
123124
if $IS_WIN; then
124125
echo "flags: -builtin-abc" >> cabal.project.local
125126
echo "constraints: cryptol-saw-core -build-css" >> cabal.project.local
126127
else
127128
pkgs+=(saw-remote-api)
128129
fi
129-
tee -a cabal.project > /dev/null < cabal.project.ci
130+
tee -a cabal.project.local > /dev/null < cabal.project.ci
130131
if ! retry cabal v2-build "$@" "${pkgs[@]}"; then
131132
if [[ "$RUNNER_OS" == "macOS" ]]; then
132133
echo "Working around a dylib issue on macos by removing the cache and trying again"
@@ -193,12 +194,9 @@ sign() {
193194
}
194195

195196
zip_dist() {
196-
: "${VERSION?VERSION is required as an environment variable}"
197-
name="${name:-"saw-$VERSION-$RUNNER_OS-x86_64"}"
198-
mv dist "$name"
197+
name="$1"
198+
cp -r dist "$name"
199199
tar -czf "$name".tar.gz "$name"
200-
sign "$name".tar.gz
201-
[[ -f "$name".tar.gz.sig ]] && [[ -f "$name".tar.gz ]]
202200
}
203201

204202
output() { echo "::set-output name=$1::$2"; }

0 commit comments

Comments
 (0)