Advertisement
RobertBerger

00.01-release.yml

Jun 18th, 2023
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. name: release
  2. #on: [push]
  3. on:
  4. push:
  5. branches: [ "main" ]
  6. workflow_dispatch:
  7. jobs:
  8. release:
  9. runs-on: yocto-build-latest
  10. steps:
  11. - name: Get build system info
  12. id: build_system
  13. run: |
  14. echo "Host: ${HOSTNAME}"
  15. echo "CPUs/Threads: $(grep -c ^processor /proc/cpuinfo)"
  16. echo "CPUs: $(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')"
  17. echo "$(free -mh)"
  18. call-runall-fetch:
  19. # get all the sources from outside
  20. # - we use premirros in order to speed up checking out kernel, u-boot,...
  21. # - because of this we need a hack (symlink) from original to mirror
  22. # - e.g. itshallow_git.kernel.org.pub.scm.linux.kernel.git.stable.linux-stable.git_ebdb69c-1_linux-6.1.y.tar.gz -> gitshallow_10.0.0.182.8939.robert.berger.linux-stable.git_ebdb69c-1_linux-6.1.y.tar.gz
  23. # source mirrors (tarball for local, network source-mirror) are populated
  24. # (networked accessible) PR_SERVER is active
  25. # (networked accessible) HASH_SERVER is active
  26. #
  27. # bitbake uninative-tarball --runall=fetch
  28. # bitbake core-image-minimal --runall=fetch
  29. uses: ./.gitea/workflows/01-uninative-core-image-minimal-prep-runall-fetch.yml
  30. secrets: inherit
  31. call-build-from-local-source-mirror:
  32. # BB_NO_NETWORK is active
  33. # get all the sources from a local source-mirror
  34. # - download tarball from web server and unpack it
  35. # (networked accessible) PR_SERVER is active
  36. # (networked accessible) HASH_SERVER is active
  37. #
  38. # bitbake uninative-tarball
  39. # bitbake core-image-minimal
  40. # - just to see that we can build it from the local source mirror
  41. # - if we would populate the sstate-mirror we would achive
  42. # Sstate summary: Wanted 868 Local 0 Mirrors 487 Missed 381 Current 0 (56% match, 0% complete)
  43. # and not
  44. # Sstate summary: Wanted 868 Local 0 Mirrors 864 Missed 4 Current 0 (99% match, 0% complete)
  45. #
  46. # populate uninative tarball
  47. # - we create a file with the sha256sum of it
  48. # - we create a symlink for it
  49. #if: ${{ always() }} #This will make your workflow2 executed even if workflow1 fails, remove this, if you want to run this only on success of workflow1
  50. needs: call-runall-fetch
  51. uses: ./.gitea/workflows/02-uninative-core-image-minimal-local-source-mirror.yml
  52. secrets: inherit
  53. call-use-uninative-core-image-minimal-populate-sstate-mirror:
  54. # get/use the uninative tarball from an internal web server
  55. # get all sources from a network accessible source-mirror
  56. # - I would think that local source-mirror would be faster
  57. # - use premirrors
  58. # (networked accessible) PR_SERVER is active
  59. # (networked accessible) HASH_SERVER is active
  60. #
  61. # bitbake core-image-minimal
  62. #
  63. # populate (network accessible) sstate-mirror
  64. # now we should have a 99% Sstate match
  65. #
  66. needs: call-build-from-local-source-mirror
  67. uses: ./.gitea/workflows/03-use-uninative-core-image-minimal-populate-sstate-mirror.yml
  68. secrets: inherit
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement