|
87 | 87 | - name: 📚 Documentation (Haddock)
|
88 | 88 | run: |
|
89 | 89 | nix build .#haddocks
|
90 |
| - mkdir -p haddocks |
91 |
| - cp -aL result/* haddocks/ |
92 |
| -
|
93 |
| - - name: 💾 Upload haddock artifact |
94 |
| - uses: actions/upload-artifact@v4 |
95 |
| - with: |
96 |
| - name: haddocks |
97 |
| - path: haddocks |
98 | 90 |
|
99 | 91 | benchmarks:
|
100 | 92 | name: "Benchmarks"
|
@@ -178,153 +170,3 @@ jobs:
|
178 | 170 | issue-number: ${{ github.event.pull_request.number }}
|
179 | 171 | body-file: comment-body.md
|
180 | 172 | reactions: rocket
|
181 |
| - |
182 |
| - nix-flake-check: |
183 |
| - name: "nix flake check" |
184 |
| - runs-on: ${{ matrix.os }} |
185 |
| - strategy: |
186 |
| - matrix: |
187 |
| - os: [ubuntu-latest, macos-latest] |
188 |
| - steps: |
189 |
| - - name: Reclaim the bytes |
190 |
| - uses: data-intuitive/reclaim-the-bytes@v2 |
191 |
| - with: |
192 |
| - # NOTE: Remove more when needed, but these take also time |
193 |
| - # See https://github.com/marketplace/actions/reclaim-the-bytes |
194 |
| - remove-android-sdk: false |
195 |
| - remove-docker-images: false |
196 |
| - |
197 |
| - - name: 📥 Checkout repository |
198 |
| - uses: actions/checkout@v4 |
199 |
| - |
200 |
| - - name: ❄ Setup Nix/Cachix |
201 |
| - uses: ./.github/actions/nix-cachix-setup |
202 |
| - with: |
203 |
| - authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' |
204 |
| - |
205 |
| - - name: ❄ Nix Flake Check |
206 |
| - run: | |
207 |
| - nix flake check -L |
208 |
| -
|
209 |
| -
|
210 |
| - build-specification: |
211 |
| - name: "Build specification using nix" |
212 |
| - runs-on: ubuntu-latest |
213 |
| - steps: |
214 |
| - - name: 📥 Checkout repository |
215 |
| - uses: actions/checkout@v4 |
216 |
| - |
217 |
| - - name: ❄ Setup Nix/Cachix |
218 |
| - uses: ./.github/actions/nix-cachix-setup |
219 |
| - with: |
220 |
| - authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' |
221 |
| - |
222 |
| - - name: ❄ Build specification PDF |
223 |
| - run: | |
224 |
| - nix build .#spec && cp result/*.pdf . |
225 |
| -
|
226 |
| - - name: 💾 Upload specification |
227 |
| - uses: actions/upload-artifact@v4 |
228 |
| - with: |
229 |
| - name: hydra-spec |
230 |
| - path: | |
231 |
| - ./*.pdf |
232 |
| -
|
233 |
| -
|
234 |
| - documentation: |
235 |
| - name: Documentation |
236 |
| - needs: [haddock,benchmarks,build-test,build-specification] |
237 |
| - runs-on: ubuntu-latest |
238 |
| - steps: |
239 |
| - - name: 📥 Checkout repository |
240 |
| - uses: actions/checkout@v4 |
241 |
| - with: |
242 |
| - # For the cardanonical json schemas |
243 |
| - submodules: true |
244 |
| - # Ensure we have all history with all commits |
245 |
| - fetch-depth: 0 |
246 |
| - |
247 |
| - - name: ❄ Setup Nix/Cachix |
248 |
| - uses: ./.github/actions/nix-cachix-setup |
249 |
| - with: |
250 |
| - authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' |
251 |
| - |
252 |
| - - name: Set up and use the "ci" devShell |
253 |
| - uses: nicknovitski/nix-develop@v1 |
254 |
| - with: |
255 |
| - arguments: ".#ci" |
256 |
| - |
257 |
| - # Technically, we don't need this, given we're in a Nix shell; |
258 |
| - # but we will keep it for the caching. |
259 |
| - - name: 🚧 Setup Node.js |
260 |
| - uses: actions/setup-node@v4 |
261 |
| - with: |
262 |
| - node-version: 18 |
263 |
| - cache: 'yarn' |
264 |
| - cache-dependency-path: docs/yarn.lock |
265 |
| - |
266 |
| - - name: 📥 Download benchmark results |
267 |
| - uses: actions/download-artifact@v5 |
268 |
| - with: |
269 |
| - path: docs/benchmarks |
270 |
| - pattern: benchmarks-* |
271 |
| - merge-multiple: true |
272 |
| - |
273 |
| - - name: 📥 Download haddock documentation |
274 |
| - uses: actions/download-artifact@v5 |
275 |
| - with: |
276 |
| - name: haddocks |
277 |
| - path: docs/static/haddock |
278 |
| - |
279 |
| - - name: 📥 Download specification PDF |
280 |
| - uses: actions/download-artifact@v5 |
281 |
| - with: |
282 |
| - name: hydra-spec |
283 |
| - path: docs/static/ |
284 |
| - |
285 |
| - - name: 📚 Documentation sanity check |
286 |
| - working-directory: docs |
287 |
| - run: | |
288 |
| - yarn |
289 |
| - yarn build-dev |
290 |
| -
|
291 |
| -
|
292 |
| - # Compute the cost difference between this branch and master. |
293 |
| - tx-cost-diff: |
294 |
| - name: Compute cost differences |
295 |
| - runs-on: ubuntu-latest |
296 |
| - # Only run on PR |
297 |
| - if: github.event_name == 'pull_request' |
298 |
| - steps: |
299 |
| - - name: "Checkout the PR as the 'new' source" |
300 |
| - uses: actions/checkout@v4 |
301 |
| - |
302 |
| - - name: ❄ Setup Nix/Cachix |
303 |
| - uses: ./.github/actions/nix-cachix-setup |
304 |
| - with: |
305 |
| - authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' |
306 |
| - |
307 |
| - - name: Set up and use the "ci" devShell |
308 |
| - uses: nicknovitski/nix-develop@v1 |
309 |
| - with: |
310 |
| - arguments: ".#costDifferences" |
311 |
| - |
312 |
| - - name: "Compute the difference markdown" |
313 |
| - run: | |
314 |
| - nix run ".#tx-cost-diff" |
315 |
| -
|
316 |
| - - name: 🔎 Find Comment |
317 |
| - uses: peter-evans/find-comment@v3 |
318 |
| - id: find-comment |
319 |
| - with: |
320 |
| - issue-number: ${{ github.event.pull_request.number }} |
321 |
| - comment-author: 'github-actions[bot]' |
322 |
| - body-includes: Transaction cost differences |
323 |
| - |
324 |
| - - name: ✏ Create or update comment |
325 |
| - uses: peter-evans/create-or-update-comment@v4 |
326 |
| - with: |
327 |
| - comment-id: ${{ steps.find-comment.outputs.comment-id }} |
328 |
| - edit-mode: replace |
329 |
| - issue-number: ${{ github.event.pull_request.number }} |
330 |
| - body-file: diff.md |
0 commit comments