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