Skip to content

Commit

Permalink
ARC: Github CI uImage building
Browse files Browse the repository at this point in the history
Add a GitHub CI test builds to ci.yml for automated testing of
uImage building.
  • Loading branch information
xxkent committed Sep 11, 2023
1 parent a68eeb9 commit 671ac66
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
libelf-dev \
libncurses5-dev \
libssl-dev \
u-boot-tools \
make
- name: Download toolchain
Expand Down Expand Up @@ -146,16 +147,15 @@ jobs:
;;
esac
make -j $(nproc) uImage
if [[ "${{ matrix.targets.cpu }}" =~ ^(hs5x|hs6x) ]]; then
image_name="loader"
image_path=${{ github.workspace }}/arch/arc/boot/loader
cp ${{ github.workspace }}/arch/arc/boot/loader vmlinux-${{ matrix.targets.cpu }}
else
image_name="vmlinux"
image_path="${{ github.workspace }}/vmlinux"
cp ${{ github.workspace }}/vmlinux vmlinux-${{ matrix.targets.cpu }}
fi
make -j $(nproc) ${image_name}
cp $image_path vmlinux-${{ matrix.targets.cpu }}
cp ${{ github.workspace }}/arch/arc/boot/uImage uImage-${{ matrix.targets.cpu }}
shell: bash

- name: Upload ${{ matrix.targets.cpu }} vmlinux
Expand All @@ -165,6 +165,13 @@ jobs:
path: vmlinux-${{ matrix.targets.cpu }}
retention-days: 5

- name: Upload ${{ matrix.targets.cpu }} uImage
uses: actions/upload-artifact@v3
with:
name: uImage-${{ matrix.targets.cpu }}
path: uImage-${{ matrix.targets.cpu }}
retention-days: 5

test:
needs: [build]
runs-on: nsim
Expand Down

0 comments on commit 671ac66

Please sign in to comment.