|
75 | 75 | run: cargo binstall -y cargo-nextest |
76 | 76 |
|
77 | 77 | - uses: Swatinem/rust-cache@v2 |
| 78 | + with: |
| 79 | + shared-key: test-and-clippy |
| 80 | + save-if: ${{ github.ref == 'refs/heads/main' }} |
78 | 81 |
|
79 | 82 | - name: Test |
80 | 83 | env: |
@@ -112,6 +115,9 @@ jobs: |
112 | 115 | components: clippy |
113 | 116 |
|
114 | 117 | - uses: Swatinem/rust-cache@v2 |
| 118 | + with: |
| 119 | + save-if: false |
| 120 | + shared-key: test-and-clippy |
115 | 121 |
|
116 | 122 | - name: Show toolchain info |
117 | 123 | run: cargo --version --verbose |
@@ -149,6 +155,12 @@ jobs: |
149 | 155 | - name: Install Cargo Binstall |
150 | 156 | uses: cargo-bins/cargo-binstall@main |
151 | 157 |
|
| 158 | + # This is needed for building skia from source |
| 159 | + - name: Setup github long path support (Windows) |
| 160 | + if: matrix.os == 'windows-latest' |
| 161 | + run: | |
| 162 | + git config --system core.longpaths true |
| 163 | +
|
152 | 164 | - name: Install dependencies (Windows) |
153 | 165 | if: matrix.os == 'windows-latest' |
154 | 166 | run: | |
@@ -185,15 +197,14 @@ jobs: |
185 | 197 | neovim: true |
186 | 198 |
|
187 | 199 | - uses: Swatinem/rust-cache@v2 |
| 200 | + with: |
| 201 | + save-if: ${{ github.ref == 'refs/heads/main' }} |
188 | 202 |
|
189 | 203 | - name: Build (Windows) |
190 | 204 | if: matrix.os == 'windows-latest' |
191 | 205 | env: |
192 | 206 | RUSTFLAGS: "-Ctarget-feature=+crt-static" |
193 | | - # The file paths are to long, so we need to vendor the dependencies |
194 | 207 | run: | |
195 | | - mkdir .cargo |
196 | | - cargo vendor ../c > .cargo/config.toml |
197 | 208 | cargo wix --nocapture --output target/release/neovide.msi --package neovide |
198 | 209 |
|
199 | 210 | - name: Build (macOS) |
|
0 commit comments