diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9f1d5f60b9b5..1be49747c34d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,8 @@ jobs: build: strategy: fail-fast: false + matrix: + cc: [gcc, clang] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -38,7 +40,7 @@ jobs: continue-on-error: false with: path: ${{ env.SCCACHE_DIR }} - key: ${{ env.KERNEL_NAME }} + key: ${{ env.KERNEL_NAME }}-${{ matrix.cc }} - name: Start sccache server run: sccache --start-server - name: Install dependencies @@ -49,21 +51,16 @@ jobs: - name: Build run: | tuxmake --directory ./ -w sccache --target-arch=arm -k $KBUILD_DEFCONFIG $TUXMAKE_EXTRA_OPTS - cd /home/runner/.cache/tuxmake/builds/1/ - tar -cf linux-grate-next.tar * - cd - - mv /home/runner/.cache/tuxmake/builds/1/linux-grate-next.tar ./ - - name: Print sccache stats - run: sccache --show-stats + tar -cf linux-grate-${{ matrix.cc }}.tar -C /home/runner/.cache/tuxmake/builds/1 . - name: Stop sccache server run: sccache --stop-server || true - uses: "marvinpinto/action-automatic-releases@latest" if: ${{!startsWith(github.ref, 'refs/pull')}} with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${{ env.KERNEL_NAME }}" + automatic_release_tag: "${{ env.KERNEL_NAME }}-${{ matrix.cc }}" prerelease: true - title: "Build ${{ env.KERNEL_NAME }}" + title: "Build of Grate kernel, compiled with ${{ matrix.cc }}" files: | *.tar dtbs: diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index 8f8810432e284..23b25c93b6c6f 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -5,7 +5,9 @@ jobs: name: checkpatch review runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + with: + fetch-depth: 150 - name: Run checkpatch review uses: webispy/checkpatch-action@master env: