|
68 | 68 | - quickwit/**/*.proto |
69 | 69 | - quickwit/rest-api-tests/** |
70 | 70 | - .github/workflows/ci.yml |
71 | | - # The following step is just meant to install rustup actually. |
72 | | - # The next one installs the correct toolchain. |
73 | | - - name: Install rustup |
74 | | - if: steps.modified.outputs.rust_src == 'true' |
75 | | - run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y |
76 | 71 | - name: Setup stable Rust Toolchain |
77 | 72 | if: steps.modified.outputs.rust_src == 'true' |
78 | | - run: rustup show active-toolchain || rustup toolchain install |
79 | | - working-directory: ./quickwit |
| 73 | + uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable |
80 | 74 | - name: Setup cache |
81 | 75 | uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1 |
82 | 76 | if: steps.modified.outputs.rust_src == 'true' |
@@ -126,17 +120,15 @@ jobs: |
126 | 120 | - .github/workflows/ci.yml |
127 | 121 | - name: Install Ubuntu packages |
128 | 122 | if: always() && steps.modified.outputs.rust_src == 'true' |
129 | | - run: sudo apt-get -y install protobuf-compiler python3 python3-pip |
130 | | - - name: Install rustup |
131 | | - if: steps.modified.outputs.rust_src == 'true' |
132 | | - run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y |
| 123 | + run: sudo apt-get -y install protobuf-compiler |
133 | 124 | - name: Setup nightly Rust Toolchain (for rustfmt) |
134 | 125 | if: steps.modified.outputs.rust_src == 'true' |
135 | | - run: rustup toolchain install nightly |
| 126 | + uses: dtolnay/rust-toolchain@55d80eb3c5a4228eec5390a083c092095115c6f1 # nightly |
| 127 | + with: |
| 128 | + components: rustfmt |
136 | 129 | - name: Setup stable Rust Toolchain |
137 | 130 | if: steps.modified.outputs.rust_src == 'true' |
138 | | - run: rustup show active-toolchain || rustup toolchain install |
139 | | - working-directory: ./quickwit |
| 131 | + uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable |
140 | 132 | - name: Setup cache |
141 | 133 | if: steps.modified.outputs.rust_src == 'true' |
142 | 134 | uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1 |
|
0 commit comments