-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaction.yml
56 lines (50 loc) · 1.38 KB
/
action.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
54
55
56
name: "Build Dafny from source"
description: "Builds the given branch of Dafny from source"
inputs:
dafny-version:
description: "Dafny version to build from source"
required: true
type: string
ref:
description: "The Dafny branch, tag or SHA to build"
required: true
type: string
runs:
using: "composite"
steps:
- uses: actions/setup-java@v3
with:
distribution: "corretto"
java-version: "17"
- name: Checkout Dafny
uses: actions/checkout@v4
with:
repository: dafny-lang/dafny
path: dafny
ref: ${{ inputs.ref }}
- name: Setup Z3
uses: cda-tum/[email protected]
with:
version: 4.12.1
- name: Build Dafny
shell: bash
run: |
make -C dafny exe
- name: Add dafny to PATH (non-Windows)
if: runner.os != 'Windows'
shell: bash
run: |
echo ${{ github.workspace }}/dafny/Scripts >> $GITHUB_PATH
- name: Add dafny to PATH (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
Add-Content $env:GITHUB_PATH "${{ github.workspace }}/dafny/Scripts"
- name: Export DAFNY_VERSION
shell: bash
run: |
echo "DAFNY_VERSION=${{ inputs.dafny-version }}" >> $GITHUB_ENV
- name: Install reportgenerator
shell: bash
run: |
dotnet tool install -g dafny-reportgenerator --version 1.*