|
8 | 8 | description: "(Default: 1.74.0) Rust toolchain specification to install - see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification" |
9 | 9 | required: false |
10 | 10 | default: "1.74.0" |
| 11 | + azure-client-id: |
| 12 | + description: 'ClientId of the Azure Service principal created.' |
| 13 | + required: true |
| 14 | + azure-tenant-id: |
| 15 | + description: 'TenantId of the Azure Service principal created.' |
| 16 | + required: true |
| 17 | + azure-subscription-id: |
| 18 | + description: 'Azure subscriptionId' |
| 19 | + required: false |
11 | 20 |
|
12 | 21 | runs: |
13 | 22 | using: composite |
|
24 | 33 |
|
25 | 34 | ### Linux setup ### |
26 | 35 |
|
| 36 | + - name: Install azure-cli (Linux mariner) |
| 37 | + if: ${{ runner.os == 'Linux' }} |
| 38 | + run: | |
| 39 | + if command -v dnf > /dev/null 2>&1; then |
| 40 | + sudo dnf install azure-cli -y |
| 41 | + fi |
| 42 | + shell: bash |
| 43 | + |
| 44 | + - name: Azure CLI login (Linux) |
| 45 | + uses: azure/login@v1 |
| 46 | + if: runner.os == 'Linux' |
| 47 | + with: |
| 48 | + client-id: ${{ inputs.azure-client-id }} |
| 49 | + tenant-id: ${{ inputs.azure-tenant-id }} |
| 50 | + subscription-id: ${{ inputs.azure-subscription-id }} |
| 51 | + |
27 | 52 | - name: Cargo login |
28 | 53 | if: ${{ runner.os == 'Linux' }} |
29 | | - run: just cargo-login-ci |
| 54 | + run: just cargo-login |
| 55 | + shell: bash |
| 56 | + |
| 57 | + - name: Cargo login |
| 58 | + if: ${{ runner.os == 'Linux' }} |
| 59 | + run: just cargo-login |
30 | 60 | shell: bash |
31 | 61 |
|
32 | 62 | - name: Install clang-tools (Linux mariner) |
@@ -84,9 +114,17 @@ runs: |
84 | 114 |
|
85 | 115 | ### Windows setup ### |
86 | 116 |
|
| 117 | + - name: Azure CLI login (Window) |
| 118 | + uses: azure/login@v1 |
| 119 | + if: runner.os == 'Windows' |
| 120 | + with: |
| 121 | + client-id: ${{ inputs.azure-client-id }} |
| 122 | + tenant-id: ${{ inputs.azure-tenant-id }} |
| 123 | + subscription-id: ${{ inputs.azure-subscription-id }} |
| 124 | + |
87 | 125 | - name: Cargo login (Windows) |
88 | 126 | if: ${{ (runner.os == 'Windows') }} |
89 | | - run: just cargo-login-ci-windows |
| 127 | + run: just cargo-login |
90 | 128 | shell: pwsh |
91 | 129 |
|
92 | 130 | - name: Enable WHP on Windows |
|
0 commit comments