Skip to content

Commit 9f4b2fc

Browse files
m
1 parent e6a30d6 commit 9f4b2fc

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

.github/workflows/library_interop_test_vectors.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
os: [
228228
# https://taskei.amazon.dev/tasks/CrypTool-5283
229229
# windows-latest,
230-
ubuntu-latest,
230+
ubuntu-22.04,
231231
macos-13,
232232
]
233233
encrypting_language: [java, net, rust, go, python]
@@ -289,27 +289,35 @@ jobs:
289289
uses: actions-rust-lang/[email protected]
290290
with:
291291
components: rustfmt
292-
# TODO - uncomment this after Rust formatter works
293-
# - name: Rustfmt Check
294-
# uses: actions-rust-lang/rustfmt@v1
295292

296-
# TODO: Remove this after the formatting in Rust starts working
297-
- name: smithy-dafny Rust hacks
293+
- name: Setup Rust Toolchain for GitHub CI
298294
if: matrix.decrypting_language == 'rust'
299-
shell: bash
295+
uses: actions-rust-lang/[email protected]
296+
with:
297+
components: rustfmt
298+
299+
- name: Setup Go
300+
uses: actions/setup-go@v5
301+
with:
302+
go-version: "1.23"
303+
304+
- name: Install Go imports
300305
run: |
301-
if [ "$RUNNER_OS" == "macOS" ]; then
302-
sed -i '' 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' mpl/smithy-dafny/SmithyDafnyMakefile.mk
303-
else
304-
sed -i 's|rustfmt --edition 2021 runtimes/rust/src/implementation_from_dafny.rs|#&|' mpl/smithy-dafny/SmithyDafnyMakefile.mk
305-
fi
306+
go install golang.org/x/tools/cmd/goimports@latest
306307
307308
- name: Setup NASM for Windows in Rust (aws-lc-sys)
308309
if: matrix.decrypting_language == 'rust' && matrix.os == 'windows-latest'
309310
uses: ilammy/setup-nasm@v1
310311

311-
- name: Setup Dafny
312-
uses: dafny-lang/[email protected]
312+
- name: Setup Dafny Rust
313+
if: matrix.decrypting_language == 'rust'
314+
uses: dafny-lang/[email protected]
315+
with:
316+
dafny-version: nightly-2025-01-30-7db1e5f
317+
318+
- name: Setup Dafny Not Rust
319+
if: matrix.decrypting_language != 'rust'
320+
uses: dafny-lang/[email protected]
313321
with:
314322
dafny-version: ${{ inputs.dafny }}
315323

project.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file stores the top level dafny version information.
22
# All elements of the project need to agree on this version.
3-
dafnyVersion=4.10.0
4-
dafnyVerifyVersion=4.10.0
5-
dafnyFormatVersion=4.10.0
3+
dafnyVersion=4.9.0
4+
dafnyVerifyVersion=4.9.0
5+
dafnyFormatVersion=4.9.0
66
projectJavaVersion=4.1.0
77
mplDependencyJavaVersion=1.9.0-SNAPSHOT
88
dafnyRuntimeJavaVersion=4.9.0

0 commit comments

Comments
 (0)