From d8009500a4694dcbbfdd565eff4fdeca67b75b3f Mon Sep 17 00:00:00 2001 From: Ylarod Date: Tue, 17 Jan 2023 17:05:12 +0800 Subject: [PATCH] ci: fix error --- .github/workflows/build-kernel-5.10.yml | 9 ++++----- .github/workflows/build-kernel-5.15.yml | 8 ++++---- .github/workflows/build-manager.yml | 6 +++--- .github/workflows/build-su.yml | 7 +++---- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-kernel-5.10.yml b/.github/workflows/build-kernel-5.10.yml index 3664fdf9..b291dd9a 100644 --- a/.github/workflows/build-kernel-5.10.yml +++ b/.github/workflows/build-kernel-5.10.yml @@ -38,6 +38,10 @@ jobs: name: Build aarch64-${{ matrix.version }} runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + with: + path: KernelSU + fetch-depth: 0 - name: Setup need_upload id: need_upload run: | @@ -47,11 +51,6 @@ jobs: echo "UPLOAD=false" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v3 - with: - path: KernelSU - fetch-depth: 0 - - name: Setup kernel source run: | cd $GITHUB_WORKSPACE diff --git a/.github/workflows/build-kernel-5.15.yml b/.github/workflows/build-kernel-5.15.yml index 752bb0a3..ff69f188 100644 --- a/.github/workflows/build-kernel-5.15.yml +++ b/.github/workflows/build-kernel-5.15.yml @@ -26,6 +26,10 @@ jobs: name: Build aarch64-${{ matrix.version }} runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + with: + path: KernelSU + fetch-depth: 0 - name: Setup need_upload id: need_upload run: | @@ -34,10 +38,6 @@ jobs: else echo "UPLOAD=false" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v3 - with: - path: KernelSU - fetch-depth: 0 - name: Setup kernel source run: | diff --git a/.github/workflows/build-manager.yml b/.github/workflows/build-manager.yml index 9693138e..fc082e0b 100644 --- a/.github/workflows/build-manager.yml +++ b/.github/workflows/build-manager.yml @@ -20,6 +20,9 @@ jobs: run: working-directory: ./manager steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Setup need_upload id: need_upload run: | @@ -28,9 +31,6 @@ jobs: else echo "UPLOAD=false" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - name: set up JDK 11 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/build-su.yml b/.github/workflows/build-su.yml index 4ce18993..9d289612 100644 --- a/.github/workflows/build-su.yml +++ b/.github/workflows/build-su.yml @@ -15,6 +15,9 @@ jobs: name: Build userspace su runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Setup need_upload id: need_upload run: | @@ -23,10 +26,6 @@ jobs: else echo "UPLOAD=false" >> $GITHUB_OUTPUT fi - - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - uses: nttld/setup-ndk@v1 with: ndk-version: r25b