@@ -105,28 +105,20 @@ install_yices() {
105
105
rm -rf " yices$ext " " yices-$YICES_VERSION "
106
106
}
107
107
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
-
117
108
build () {
118
109
ghc_ver=" $( ghc --numeric-version) "
119
110
cp cabal.GHC-" $ghc_ver " .config cabal.project.freeze
120
111
cabal v2-update
121
112
cabal v2-configure -j --enable-tests
113
+ git status --porcelain
122
114
pkgs=(saw)
123
115
if $IS_WIN ; then
124
116
echo " flags: -builtin-abc" >> cabal.project.local
125
117
echo " constraints: cryptol-saw-core -build-css" >> cabal.project.local
126
118
else
127
119
pkgs+=(saw-remote-api)
128
120
fi
129
- tee -a cabal.project > /dev/null < cabal.project.ci
121
+ tee -a cabal.project.local > /dev/null < cabal.project.ci
130
122
if ! retry cabal v2-build " $@ " " ${pkgs[@]} " ; then
131
123
if [[ " $RUNNER_OS " == " macOS" ]]; then
132
124
echo " Working around a dylib issue on macos by removing the cache and trying again"
@@ -155,11 +147,10 @@ install_system_deps() {
155
147
install_z3 &
156
148
install_cvc4 &
157
149
install_yices &
158
- install_yasm &
159
150
wait
160
151
export PATH=" $BIN :$PATH "
161
152
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
163
154
}
164
155
165
156
build_cryptol () {
@@ -193,12 +184,9 @@ sign() {
193
184
}
194
185
195
186
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 "
199
189
tar -czf " $name " .tar.gz " $name "
200
- sign " $name " .tar.gz
201
- [[ -f " $name " .tar.gz.sig ]] && [[ -f " $name " .tar.gz ]]
202
190
}
203
191
204
192
output () { echo " ::set-output name=$1 ::$2 " ; }
0 commit comments