action.yml 952 B

1234567891011121314151617181920212223242526
  1. name: add nomount
  2. description: add and configure nomount
  3. inputs:
  4. commit:
  5. description: 'pinned nomount commit'
  6. required: false
  7. default: ""
  8. runs:
  9. using: composite
  10. steps:
  11. - name: run setup script
  12. shell: bash
  13. run: |
  14. cd "$COMMON"
  15. if [ -n "${{ inputs.commit }}" ]; then
  16. git clone --no-checkout https://github.com/maxsteeel/nomount.git /tmp/nomount
  17. git -C /tmp/nomount fetch --depth=1 origin "${{ inputs.commit }}"
  18. git -C /tmp/nomount checkout "${{ inputs.commit }}"
  19. bash /tmp/nomount/kernel/setup.sh || bash -c "curl -fsSL https://raw.githubusercontent.com/maxsteeel/nomount/${{ inputs.commit }}/kernel/setup.sh | bash -"
  20. else
  21. curl https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/setup.sh | bash -
  22. fi
  23. - name: add to defconfig
  24. shell: bash
  25. run: |
  26. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NOMOUNT