Преглед на файлове

Refactor nomount action to run setup script directly

Removed cloning of the nomount repository and patch application steps. Added a step to run the setup script directly from the repository.
jimsterino98 преди 1 месец
родител
ревизия
31fd93b0b8
променени са 1 файла, в които са добавени 2 реда и са изтрити 17 реда
  1. 2 17
      .github/actions/nomount/action.yml

+ 2 - 17
.github/actions/nomount/action.yml

@@ -4,26 +4,11 @@ description: add and configure nomount
 runs:
   using: composite
   steps:
-   - name: clone nomount repo
-     shell: bash
-     run: |
-      git clone https://github.com/maxsteeel/nomount.git -b dev
-      NOMOUNT="$ROOT/nomount"
-      echo "NOMOUNT=$NOMOUNT" >> $GITHUB_ENV
-      
-   - name: apply nomount patch
+   - name: run setup script
      shell: bash
      run: |
       cd "$COMMON"
-      #patch -p1 "$NOMOUNT/kernel/patches/nomount_$KERNEL_VERSION_kernel_integration.patch"
-      curl -L -s "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/patches/nomount_${KERNEL_VER}_kernel_integration.patch" | patch -p1
-
-   - name: copy required files
-     shell: bash
-     run: |
-      cd "$COMMON/fs"
-      curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.c"
-      curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.h"
+      curl https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/setup.sh | bash -s dev
 
    - name: add to defconfig
      shell: bash