-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve pipelines #80
Improve pipelines #80
Conversation
3025560
to
ff2e4cc
Compare
Eventually! @frasertweedale can you have a look please? |
@blackheaven -- This is great! I like the docker addition. Should we strive for parity by also adding a Dockerfile in the main repository to replicate (sort of) what we have in Nix? |
It could be a good idea. At some point, we also might publish GitHub packages too. |
@blackheaven I promise I haven't forgotten about this PR :) I shall re-review it this week. |
We need to resolve the nix conflict. |
I'll handle it tomorrow morning |
c4b2a59
to
a09cb6f
Compare
Ready :) |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the following haskell-ci.patch
will achieve the desired result (that is, regenerates and cleanly applies the patch to haskell-ci.yml
resulting unchanged file content).
diff --git a/.github/workflows/haskell-ci.yml b/.github/workflows/haskell-ci.yml
index 96282c2..e40c573 100644
--- a/.github/workflows/haskell-ci.yml
+++ b/.github/workflows/haskell-ci.yml
@@ -19,6 +19,21 @@
jobs:
+ tools_changed:
+ continue-on-error: true
+ runs-on: ubuntu-20.04
+ outputs:
+ should_skip: ${{ steps.skip_check.outputs.should_skip }}
+ steps:
+ - id: skip_check
+ uses: fkirc/[email protected]
+ with:
+ concurrent_skipping: "never"
+ skip_after_successful_duplicate: "true"
+ paths: '["code/**"]'
+ do_not_skip: '["push", "workflow_dispatch", "schedule"]'
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
+ needs: tools_changed
+ if: ${{ needs.tools_changed.outputs.should_skip != 'true' }}
runs-on: ubuntu-20.04
timeout-minutes:
60
When the regenerate
issue is resolved feel free to merge it. I am still not 100% convinced that everything will work as intended (same doubts as in previous comments). But it's hard to fit all the cases in my head, so I think it's best to merge and then we can observe the changes in action.
I'll handle |
hsec-tools
as artifacthsec-tools
on new advisoriesFor reference, I squeezed the docker image: https://gautier.difolco.dev/2023-07/nix-docker-optimization/