ci: Move remained task from Cirrus to GitHub Actions #1409
pull hebasto wants to merge 4 commits into bitcoin-core:master from hebasto:230821-gha-all changing 2 files +238 −159-
hebasto commented at 1:58 pm on August 22, 2023: memberThis PR concludes the migration from Cirrus CI to GitHub Actions.
-
in .github/workflows/ci.yml:529 in 1961f18a7f outdated
482+ uses: ./.github/actions/run-in-docker-action 483+ with: 484+ dockerfile: ./ci/linux-debian.Dockerfile 485+ tag: linux-debian-image 486+ command: > 487+ git config --global --add safe.directory ${{ github.workspace }} &&
real-or-random commented at 2:48 pm on August 22, 2023:Not this PR, but now that I see this, couldn’t we add this to
run-in-docker-action
to avoid duplication?(did I ask this before?)
hebasto commented at 3:13 pm on August 22, 2023:(did I ask this before?)
We discussed whether it should be placed in
ci.sh
.UPD. … as it’s done in bitcoin repo.
real-or-random commented at 8:49 am on August 23, 2023:Ok, sure, I remember now. I still think this should not be inci.sh
, but yeah, we could consider moving it torun-in-docker-action
(in a separate PR probably).
real-or-random added the label ci on Aug 22, 2023in .github/workflows/ci.yml:420 in 1961f18a7f outdated
415+ 416+ - name: Set environment variables 417+ run: | 418+ for var in "$(jq -s 'add' <<< '${{ toJSON(matrix.configuration.env_vars) }} ${{ toJSON(matrix.asm.env_vars) }} ${{ toJSON(matrix.cc.env_vars) }}' | jq -r 'to_entries | .[] | "\(.key)=\(.value)"')"; do 419+ echo "$var" >> "$GITHUB_ENV" 420+ done
real-or-random commented at 3:05 pm on August 22, 2023:A bit ugly, hm… There’s no better way to merge this, I guess.
I think it makes sense to split this job into two jobs “Valgrind (memcheck)” and “UBSan, ASan, LSan”. Then for each of these jobs, we can expand the remaining 2x2 combinations, i.e., list the 4 resulting combinations explicitly. This is probably a good idea anyway, it will also make it a bit easier to add variety to the jobs.
What do you think?
hebasto commented at 3:11 pm on August 22, 2023:I think it makes sense to split this job into two jobs “Valgrind (memcheck)” and “UBSan, ASan, LSan”.
I was thinking about the same. But it won’t help.
Only one
env
property is allowed job-wide and step-wide. Job-wideenv
is already busy with global variables. Therefore, even 2 sets won’t fit one step-wideenv
.
hebasto commented at 3:15 pm on August 22, 2023:list the 4 resulting combinations explicitly
… but that is completely feasible.
hebasto commented at 7:01 pm on August 22, 2023:list the 4 resulting combinations explicitly
… but that is completely feasible.
Done.
hebasto force-pushed on Aug 22, 2023in .github/workflows/ci.yml:787 in 1b51315e60 outdated
782+ with: 783+ dockerfile: ./ci/linux-debian.Dockerfile 784+ tag: linux-debian-image 785+ command: > 786+ g++ -Werror include/*.h && 787+ clang -Werror -x c++-header include/*.h
real-or-random commented at 9:01 am on August 23, 2023:nit: it’s probably more convenient to run
clang
even ifg++
fails0 g++ -Werror include/*.h 1 clang -Werror -x c++-header include/*.h
(I think that linebreak should work. Or do we need a
;
here?)
hebasto commented at 10:00 am on August 23, 2023:Thanks! Reworked.real-or-random cross-referenced this on Aug 23, 2023 from issue ci: Future of CI after Cirrus pricing change by real-or-randomci: Move sanitizers task from Cirrus to GitHub Actions c22ac27529ci: Move "MSan" from Cirrus to GitHub Actions d51fb0a533ci: Move "C++ -fpermissive..." from Cirrus to GitHub Actions 61fc3a2dc8ci: Move "C++ (public headers)" from Cirrus to GitHub Actions 676ed8f9cfhebasto force-pushed on Aug 23, 2023real-or-random approvedreal-or-random commented at 12:53 pm on August 23, 2023: contributorACK 676ed8f9cf001ebaadf53d5c11e32f7a6b1e5649real-or-random merged this on Aug 23, 2023real-or-random closed this on Aug 23, 2023
hebasto deleted the branch on Aug 23, 2023hebasto cross-referenced this on Aug 23, 2023 from issue ci: Make repetitive command the default one by hebastoLabels
ci
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 09:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me