@@ -227,7 +227,7 @@ jobs:
227
227
os : [
228
228
# https://taskei.amazon.dev/tasks/CrypTool-5283
229
229
# windows-latest,
230
- ubuntu-latest ,
230
+ ubuntu-22.04 ,
231
231
macos-13,
232
232
]
233
233
encrypting_language : [java, net, rust, go, python]
@@ -289,27 +289,35 @@ jobs:
289
289
uses :
actions-rust-lang/[email protected]
290
290
with :
291
291
components : rustfmt
292
- # TODO - uncomment this after Rust formatter works
293
- # - name: Rustfmt Check
294
- # uses: actions-rust-lang/rustfmt@v1
295
292
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
298
294
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
300
305
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
306
307
307
308
- name : Setup NASM for Windows in Rust (aws-lc-sys)
308
309
if : matrix.decrypting_language == 'rust' && matrix.os == 'windows-latest'
309
310
uses : ilammy/setup-nasm@v1
310
311
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]
313
321
with :
314
322
dafny-version : ${{ inputs.dafny }}
315
323
0 commit comments