Skip to content

Commit 58e4751

Browse files
committed
Merge branch 'master' into sp/crux-mir-comp
2 parents 1342765 + f17809e commit 58e4751

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+330
-474
lines changed

.github/ci.sh

+5-17
Original file line numberDiff line numberDiff line change
@@ -105,28 +105,20 @@ install_yices() {
105105
rm -rf "yices$ext" "yices-$YICES_VERSION"
106106
}
107107

108-
install_yasm() {
109-
is_exe "$BIN" "yasm" && return
110-
case "$RUNNER_OS" in
111-
Linux) sudo apt-get update -q && sudo apt-get install -y yasm ;;
112-
macOS) brew install yasm ;;
113-
Windows) choco install yasm ;;
114-
esac
115-
}
116-
117108
build() {
118109
ghc_ver="$(ghc --numeric-version)"
119110
cp cabal.GHC-"$ghc_ver".config cabal.project.freeze
120111
cabal v2-update
121112
cabal v2-configure -j --enable-tests
113+
git status --porcelain
122114
pkgs=(saw)
123115
if $IS_WIN; then
124116
echo "flags: -builtin-abc" >> cabal.project.local
125117
echo "constraints: cryptol-saw-core -build-css" >> cabal.project.local
126118
else
127119
pkgs+=(saw-remote-api)
128120
fi
129-
tee -a cabal.project > /dev/null < cabal.project.ci
121+
tee -a cabal.project.local > /dev/null < cabal.project.ci
130122
if ! retry cabal v2-build "$@" "${pkgs[@]}"; then
131123
if [[ "$RUNNER_OS" == "macOS" ]]; then
132124
echo "Working around a dylib issue on macos by removing the cache and trying again"
@@ -155,11 +147,10 @@ install_system_deps() {
155147
install_z3 &
156148
install_cvc4 &
157149
install_yices &
158-
install_yasm &
159150
wait
160151
export PATH="$BIN:$PATH"
161152
echo "$BIN" >> "$GITHUB_PATH"
162-
is_exe "$BIN" z3 && is_exe "$BIN" cvc4 && is_exe "$BIN" yices && is_exe "$BIN" yasm
153+
is_exe "$BIN" z3 && is_exe "$BIN" cvc4 && is_exe "$BIN" yices
163154
}
164155

165156
build_cryptol() {
@@ -193,12 +184,9 @@ sign() {
193184
}
194185

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

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

0 commit comments

Comments
 (0)