2020 os : [ubuntu-latest, macos-14, windows-latest]
2121 cargo_flags : [""]
2222 include :
23- - os : ubuntu-latest
24- cargo_flags : " --all-features"
23+ - os : ubuntu-latest
24+ cargo_flags : " --all-features"
2525 runs-on : ${{ matrix.os }}
2626
2727 # TODO FIXME (aseipp): keep the timeout limit to ~15 minutes. this is long
@@ -37,44 +37,44 @@ jobs:
3737 timeout-minutes : 15
3838
3939 steps :
40- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
40+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
4141
42- # The default version of gpg installed on the runners is a version baked in with git
43- # which only contains the components needed by git and doesn't work for our test cases.
44- #
45- # This installs the latest gpg4win version, which is a variation of GnuPG built for
46- # Windows.
47- #
48- # There is some issue with windows PATH max length which is what all the PATH wrangling
49- # below is for. Please see the below link for where this fix was derived from:
50- # https://github.com/orgs/community/discussions/24933
51- - name : Setup GnuPG [windows]
52- if : ${{ matrix.os == 'windows-latest' }}
53- run : |
54- $env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin"
55- [Environment]::SetEnvironmentVariable("Path", $env:PATH, "Machine")
56- choco install --yes gpg4win
57- echo "C:\Program Files (x86)\Gpg4win\..\GnuPG\bin" >> $env:GITHUB_PATH
58-
59- # The default version of openssh on windows server is quite old (8.1) and doesn't have
60- # all the necessary signing/verification commands available (such as -Y find-principals)
61- - name : Setup ssh-agent [windows]
62- if : ${{ matrix.os == 'windows-latest' }}
63- run : |
64- Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
65- Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
66- choco install openssh --pre
67-
68- - name : Install Rust
69- uses : dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8
70- with :
71- toolchain : 1.76
72- - name : Build
73- run : cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
74- - name : Test
75- run : cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
76- env :
77- RUST_BACKTRACE : 1
42+ # The default version of gpg installed on the runners is a version baked in with git
43+ # which only contains the components needed by git and doesn't work for our test cases.
44+ #
45+ # This installs the latest gpg4win version, which is a variation of GnuPG built for
46+ # Windows.
47+ #
48+ # There is some issue with windows PATH max length which is what all the PATH wrangling
49+ # below is for. Please see the below link for where this fix was derived from:
50+ # https://github.com/orgs/community/discussions/24933
51+ - name : Setup GnuPG [windows]
52+ if : ${{ matrix.os == 'windows-latest' }}
53+ run : |
54+ $env:PATH = "C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin"
55+ [Environment]::SetEnvironmentVariable("Path", $env:PATH, "Machine")
56+ choco install --yes gpg4win
57+ echo "C:\Program Files (x86)\Gpg4win\..\GnuPG\bin" >> $env:GITHUB_PATH
58+
59+ # The default version of openssh on windows server is quite old (8.1) and doesn't have
60+ # all the necessary signing/verification commands available (such as -Y find-principals)
61+ - name : Setup ssh-agent [windows]
62+ if : ${{ matrix.os == 'windows-latest' }}
63+ run : |
64+ Remove-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
65+ Remove-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
66+ choco install openssh --pre
67+
68+ - name : Install Rust
69+ uses : dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8
70+ with :
71+ toolchain : 1.76
72+ - name : Build
73+ run : cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
74+ - name : Test
75+ run : cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }}
76+ env :
77+ RUST_BACKTRACE : 1
7878
7979 check-protos :
8080 name : Check protos
@@ -114,7 +114,7 @@ jobs:
114114 with :
115115 poetry-version : latest
116116 - name : Install dependencies
117- run : poetry install
117+ run : poetry install
118118 - name : Check that `mkdocs` can build the docs
119119 run : poetry run -- mkdocs build --strict
120120
@@ -137,7 +137,7 @@ jobs:
137137 # pipx install 'poetry<1.4' --suffix -1.3
138138 poetry-version : 1.8
139139 - name : Install dependencies
140- run : poetry install
140+ run : poetry install
141141 - name : Check that `mkdocs` can build the docs
142142 run : poetry run -- mkdocs build --strict
143143
@@ -153,10 +153,10 @@ jobs:
153153 continue-on-error : ${{ matrix.checks == 'advisories' }}
154154
155155 steps :
156- - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
157- - uses : EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868
158- with :
159- command : check ${{ matrix.checks }}
156+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
157+ - uses : EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868
158+ with :
159+ command : check ${{ matrix.checks }}
160160
161161 clippy-check :
162162 name : Clippy check
0 commit comments