forked from dafny-lang/dafny
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.57 KB
/
release-brew.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test Brew release on Mac
on:
workflow_dispatch:
# This would make more sense as a scheduled build like deep-tests.yml
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Install dafny
run: |
brew install dafny
- name: Versions
run: |
which dafny
dafny -version
dotnet --list-sdks
go version
node --version
java -version
python --version
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
## To be consistent, the download should be tested with the quicktest.sh corresponding to
## that release. But earlier releases relied on inline tests. So for up through 4.0,
## we downliad quicktest.sh from the repo -- which will eventually fail if the quicktest
## evolves beyond the capabilities of old versions.
## But post-4.0, the script is part of the release and internally checks its results.
- name: Perform smoke tests on each platform
run: |
npm install bignumber.js
ver=`dafny -version`
ver=${ver[1]}
if [[ "$ver" < "4.0.0.99999" ]] ; then \
echo "4.0 or prior" ;\
wget https://github.com/dafny-lang/dafny/raw/master/Scripts/quicktest.sh; \
else \
echo "Post 4.0" ;\
cp /usr/local/Cellar/dafny/*/libexec/quicktest.sh . ;\
fi
chmod +x quicktest.sh
./quicktest.sh `which dafny`