Skip to content

Commit e9f8259

Browse files
chore: merge from main
2 parents 53d6ba3 + f404a90 commit e9f8259

40 files changed

Lines changed: 400 additions & 41 deletions

.github/workflows/ci_codegen.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
description: "The dafny version to run"
88
required: true
99
type: string
10+
branch:
11+
description: "Branch to checkout"
12+
required: false
13+
default: main
14+
type: string
1015

1116
jobs:
1217
code-generation:
@@ -37,6 +42,7 @@ jobs:
3742
3843
- uses: actions/checkout@v6
3944
with:
45+
ref: ${{ inputs.branch }}
4046
submodules: recursive
4147
- run: git submodule update --init --recursive submodules/smithy-dafny
4248

.github/workflows/ci_examples_java.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
description: "The Dafny version to run"
99
required: true
1010
type: string
11+
branch:
12+
description: "Branch to checkout"
13+
required: false
14+
default: main
15+
type: string
1116
regenerate-code:
1217
description: "Regenerate code using smithy-dafny"
1318
required: false
@@ -48,6 +53,7 @@ jobs:
4853

4954
- uses: actions/checkout@v6
5055
with:
56+
ref: ${{ inputs.branch }}
5157
submodules: recursive
5258

5359
- name: Setup Java 8

.github/workflows/ci_examples_net.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
description: "The Dafny version to run"
99
required: true
1010
type: string
11+
branch:
12+
description: "Branch to checkout"
13+
required: false
14+
default: main
15+
type: string
1116
regenerate-code:
1217
description: "Regenerate code using smithy-dafny"
1318
required: false
@@ -38,6 +43,7 @@ jobs:
3843
steps:
3944
- uses: actions/checkout@v6
4045
with:
46+
ref: ${{ inputs.branch }}
4147
submodules: recursive
4248

4349
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}

.github/workflows/ci_test_java.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
description: "The Dafny version to run"
99
required: true
1010
type: string
11+
branch:
12+
description: "Branch to checkout"
13+
required: false
14+
default: main
15+
type: string
1116
regenerate-code:
1217
description: "Regenerate code using smithy-dafny"
1318
required: false
@@ -49,6 +54,7 @@ jobs:
4954

5055
- uses: actions/checkout@v6
5156
with:
57+
ref: ${{ inputs.branch }}
5258
submodules: recursive
5359

5460
- name: Setup Dafny

.github/workflows/ci_test_net.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
description: "The Dafny version to run"
99
required: true
1010
type: string
11+
branch:
12+
description: "Branch to checkout"
13+
required: false
14+
default: main
15+
type: string
1116
regenerate-code:
1217
description: "Regenerate code using smithy-dafny"
1318
required: false
@@ -39,6 +44,7 @@ jobs:
3944
git config --global core.longpaths true
4045
- uses: actions/checkout@v6
4146
with:
47+
ref: ${{ inputs.branch }}
4248
submodules: recursive
4349

4450
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}

.github/workflows/ci_test_vector_java.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
description: "The Dafny version to run"
99
required: true
1010
type: string
11+
branch:
12+
description: "Branch to checkout"
13+
required: false
14+
default: main
15+
type: string
1116
regenerate-code:
1217
description: "Regenerate code using smithy-dafny"
1318
required: false
@@ -60,6 +65,7 @@ jobs:
6065

6166
- uses: actions/checkout@v6
6267
with:
68+
ref: ${{ inputs.branch }}
6369
submodules: recursive
6470

6571
- name: Setup Dafny

.github/workflows/ci_test_vector_net.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
description: "The Dafny version to run"
99
required: true
1010
type: string
11+
branch:
12+
description: "Branch to checkout"
13+
required: false
14+
default: main
15+
type: string
1116
regenerate-code:
1217
description: "Regenerate code using smithy-dafny"
1318
required: false
@@ -55,6 +60,7 @@ jobs:
5560

5661
- uses: actions/checkout@v6
5762
with:
63+
ref: ${{ inputs.branch }}
5864
submodules: recursive
5965

6066
- name: Setup Dafny

.github/workflows/dafny_verify_version.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ name: Dafny Verify Version
55

66
on:
77
workflow_call:
8+
inputs:
9+
branch:
10+
description: "Branch to checkout"
11+
required: false
12+
default: main
13+
type: string
814
outputs:
915
version:
1016
description: "The dafny version for verify"
@@ -21,6 +27,8 @@ jobs:
2127
version: ${{ steps.read_property.outputs.dafnyVerifyVersion }}
2228
steps:
2329
- uses: actions/checkout@v6
30+
with:
31+
ref: ${{ inputs.branch }}
2432
- name: Read version from Properties-file
2533
id: read_property
2634
uses: christian-draeger/read-properties@1.1.1

.github/workflows/dafny_version.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ name: Dafny Version
55

66
on:
77
workflow_call:
8+
inputs:
9+
branch:
10+
description: "Branch to checkout"
11+
required: false
12+
default: main
13+
type: string
814
outputs:
915
version:
1016
description: "The dafny version"
@@ -21,6 +27,8 @@ jobs:
2127
version: ${{ steps.read_property.outputs.dafnyVersion }}
2228
steps:
2329
- uses: actions/checkout@v6
30+
with:
31+
ref: ${{ inputs.branch }}
2432
- name: Read version from Properties-file
2533
id: read_property
2634
uses: christian-draeger/read-properties@1.1.1

.github/workflows/daily_ci.yml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ permissions:
88
on:
99
schedule:
1010
- cron: "00 16 * * 1-5"
11-
pull_request:
12-
paths: .github/workflows/daily_ci.yml
11+
workflow_dispatch:
1312

1413
jobs:
1514
getVersion:
@@ -19,116 +18,170 @@ jobs:
1918
id-token: write
2019
# Don't run the cron builds on forks
2120
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
21+
strategy:
22+
matrix:
23+
branch: [main, v3.x-Java]
2224
uses: ./.github/workflows/dafny_version.yml
25+
with:
26+
branch: ${{ matrix.branch }}
2327
getVerifyVersion:
2428
permissions:
2529
contents: read
2630
pull-requests: write
2731
id-token: write
2832
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
33+
strategy:
34+
matrix:
35+
branch: [main, v3.x-Java]
2936
uses: ./.github/workflows/dafny_verify_version.yml
37+
with:
38+
branch: ${{ matrix.branch }}
3039
daily-ci-format:
3140
permissions:
3241
contents: read
3342
pull-requests: write
3443
id-token: write
3544
needs: getVersion
3645
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
46+
strategy:
47+
matrix:
48+
branch: [main, v3.x-Java]
3749
uses: ./.github/workflows/library_format.yml
3850
with:
3951
dafny: ${{needs.getVersion.outputs.version}}
52+
branch: ${{ matrix.branch }}
4053
daily-ci-codegen:
4154
permissions:
4255
contents: read
4356
pull-requests: write
4457
id-token: write
4558
needs: getVersion
4659
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
60+
strategy:
61+
matrix:
62+
branch: [main, v3.x-Java]
4763
uses: ./.github/workflows/ci_codegen.yml
4864
with:
4965
dafny: ${{needs.getVersion.outputs.version}}
66+
branch: ${{ matrix.branch }}
5067
daily-ci-verification:
5168
permissions:
5269
contents: read
5370
pull-requests: write
5471
id-token: write
5572
needs: getVerifyVersion
5673
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
74+
strategy:
75+
matrix:
76+
branch: [main, v3.x-Java]
5777
uses: ./.github/workflows/library_dafny_verification.yml
5878
with:
5979
dafny: ${{needs.getVerifyVersion.outputs.version}}
80+
branch: ${{ matrix.branch }}
6081
daily-ci-test-vector-verification:
6182
permissions:
6283
contents: read
6384
pull-requests: write
6485
id-token: write
6586
needs: getVerifyVersion
87+
strategy:
88+
matrix:
89+
branch: [main, v3.x-Java]
6690
uses: ./.github/workflows/test_vector_verification.yml
6791
with:
6892
dafny: ${{needs.getVerifyVersion.outputs.version}}
93+
branch: ${{ matrix.branch }}
6994
daily-ci-java:
7095
permissions:
7196
contents: read
7297
pull-requests: write
7398
id-token: write
7499
needs: getVersion
100+
strategy:
101+
matrix:
102+
branch: [main, v3.x-Java]
75103
uses: ./.github/workflows/ci_test_java.yml
76104
with:
77105
dafny: ${{needs.getVersion.outputs.version}}
106+
branch: ${{ matrix.branch }}
78107
daily-ci-java-test-vectors:
79108
permissions:
80109
contents: read
81110
pull-requests: write
82111
id-token: write
83112
needs: getVersion
113+
strategy:
114+
matrix:
115+
branch: [main, v3.x-Java]
84116
uses: ./.github/workflows/ci_test_vector_java.yml
85117
with:
86118
dafny: ${{needs.getVersion.outputs.version}}
119+
branch: ${{ matrix.branch }}
87120
daily-ci-java-examples:
88121
permissions:
89122
contents: read
90123
pull-requests: write
91124
id-token: write
92125
needs: getVersion
126+
strategy:
127+
matrix:
128+
branch: [main, v3.x-Java]
93129
uses: ./.github/workflows/ci_examples_java.yml
94130
with:
95131
dafny: ${{needs.getVersion.outputs.version}}
132+
branch: ${{ matrix.branch }}
96133
daily-ci-net:
97134
permissions:
98135
contents: read
99136
pull-requests: write
100137
id-token: write
101138
needs: getVersion
139+
strategy:
140+
matrix:
141+
branch: [main, v3.x-Java]
102142
uses: ./.github/workflows/ci_test_net.yml
103143
with:
104144
dafny: ${{needs.getVersion.outputs.version}}
145+
branch: ${{ matrix.branch }}
105146
daily-ci-rust:
106147
permissions:
107148
contents: read
108149
pull-requests: write
109150
id-token: write
110151
needs: getVersion
152+
strategy:
153+
matrix:
154+
branch: [main, v3.x-Java]
111155
uses: ./.github/workflows/library_rust_tests.yml
112156
with:
113157
dafny: ${{needs.getVersion.outputs.version}}
158+
branch: ${{ matrix.branch }}
114159
daily-ci-net-test-vectors:
115160
permissions:
116161
contents: read
117162
pull-requests: write
118163
id-token: write
119164
needs: getVersion
165+
strategy:
166+
matrix:
167+
branch: [main, v3.x-Java]
120168
uses: ./.github/workflows/ci_test_vector_net.yml
121169
with:
122170
dafny: ${{needs.getVersion.outputs.version}}
171+
branch: ${{ matrix.branch }}
123172
daily-ci-net-examples:
124173
permissions:
125174
contents: read
126175
pull-requests: write
127176
id-token: write
128177
needs: getVersion
178+
strategy:
179+
matrix:
180+
branch: [main, v3.x-Java]
129181
uses: ./.github/workflows/ci_examples_net.yml
130182
with:
131183
dafny: ${{needs.getVersion.outputs.version}}
184+
branch: ${{ matrix.branch }}
132185
notify:
133186
permissions:
134187
contents: read

0 commit comments

Comments
 (0)