Skip to content

Commit 6e263be

Browse files
committed
ci: fix: remove dos lines
DOS lines need to be removed for checkpatch checker Signed-off-by: Vishal Kumar <[email protected]>
1 parent 8e30800 commit 6e263be

File tree

3 files changed

+207
-207
lines changed

3 files changed

+207
-207
lines changed

.github/actions/build/action.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
name: Build workspace
2-
description: Build workspace
3-
4-
inputs:
5-
docker_image:
6-
description: Docker image
7-
required: true
8-
default: kmake-image:latest
9-
10-
runs:
11-
using: "composite"
12-
steps:
13-
- name: Download artifacts
14-
shell: bash
15-
run: |
16-
mkdir -p ../artifacts && \
17-
wget -O ../artifacts/ramdisk.gz https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz && \
18-
wget -O ../artifacts/systemd-boot-efi.deb http://ports.ubuntu.com/pool/universe/s/systemd/systemd-boot-efi_255.4-1ubuntu8_arm64.deb && \
19-
dpkg-deb -xv ../artifacts/systemd-boot-efi.deb ../artifacts/systemd
20-
21-
- name: Make
22-
shell: bash
23-
run: |
24-
docker run -i --rm \
25-
--user $(id -u):$(id -g) \
26-
--workdir="$PWD" \
27-
-v "$(dirname $PWD)":"$(dirname $PWD)" \
28-
${{ inputs.docker_image }} bash -c "
29-
make O=../kobj defconfig
30-
make O=../kobj -j$(nproc)
31-
make O=../kobj -j$(nproc) dir-pkg INSTALL_MOD_STRIP=1
32-
"
33-
34-
- name: Package DLKM into ramdisk
35-
shell: bash
36-
run: |
1+
name: Build workspace
2+
description: Build workspace
3+
4+
inputs:
5+
docker_image:
6+
description: Docker image
7+
required: true
8+
default: kmake-image:latest
9+
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Download artifacts
14+
shell: bash
15+
run: |
16+
mkdir -p ../artifacts && \
17+
wget -O ../artifacts/ramdisk.gz https://snapshots.linaro.org/member-builds/qcomlt/testimages/arm64/1379/initramfs-test-image-qemuarm64-20230321073831-1379.rootfs.cpio.gz && \
18+
wget -O ../artifacts/systemd-boot-efi.deb http://ports.ubuntu.com/pool/universe/s/systemd/systemd-boot-efi_255.4-1ubuntu8_arm64.deb && \
19+
dpkg-deb -xv ../artifacts/systemd-boot-efi.deb ../artifacts/systemd
20+
21+
- name: Make
22+
shell: bash
23+
run: |
24+
docker run -i --rm \
25+
--user $(id -u):$(id -g) \
26+
--workdir="$PWD" \
27+
-v "$(dirname $PWD)":"$(dirname $PWD)" \
28+
${{ inputs.docker_image }} bash -c "
29+
make O=../kobj defconfig
30+
make O=../kobj -j$(nproc)
31+
make O=../kobj -j$(nproc) dir-pkg INSTALL_MOD_STRIP=1
32+
"
33+
34+
- name: Package DLKM into ramdisk
35+
shell: bash
36+
run: |
3737
(cd ../kobj/tar-install ; find lib/modules | cpio -o -H newc -R +0:+0 | gzip -9 >> ../../artifacts/ramdisk.gz)

.github/workflows/build.yml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,75 @@
1-
name: _build
2-
on:
3-
workflow_call:
4-
inputs:
5-
docker_image:
6-
description: Docker image
7-
type: string
8-
required: true
9-
10-
jobs:
11-
build:
12-
runs-on:
13-
group: GHA-Kernel-SelfHosted-RG
14-
labels: [ self-hosted, kernel-prd-u2404-x64-large-od-ephem ]
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v4
18-
with:
19-
ref: ${{ github.ref }}
20-
fetch-depth: 0
21-
22-
- name: Pull docker image
23-
uses: ./.github/actions/pull_docker_image
24-
with:
25-
image: ${{ inputs.docker_image }}
26-
github_token: ${{ secrets.GITHUB_TOKEN }}
27-
28-
- name: Build workspace
29-
id: build_workspace
30-
uses: ./.github/actions/build
31-
with:
32-
docker_image: ${{ inputs.docker_image }}
33-
34-
- name: Create file list for artifacts upload
35-
run: |
36-
touch ../artifacts/file_list.txt
37-
tar -cJf modules.tar.xz ../kobj/tar-install/lib/modules/
38-
echo "modules.tar.xz" >> ../artifacts/file_list.txt
39-
echo "../kobj/arch/arm64/boot/Image" >> ../artifacts/file_list.txt
40-
echo "../kobj/vmlinux" >> ../artifacts/file_list.txt
41-
echo "../kobj/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb" >> ../artifacts/file_list.txt
42-
43-
- name: Upload artifacts
44-
uses: ./.github/actions/aws_s3_helper
45-
with:
46-
s3_bucket: qli-prd-kernel-gh-artifacts
47-
aws_access_key_id: ${{ secrets.AWSKEYID }}
48-
aws_secret_access_key: ${{ secrets.AWSACCESSKEY }}
49-
local_file: ../artifacts/file_list.txt
50-
mode: multi-upload
51-
52-
- name: Clean up
53-
run: |
54-
rm -rf ../artifacts
55-
rm -rf ../kobj
56-
rm -rf modules.tar.xz
57-
58-
- name: Update summary
59-
if: success() || failure()
60-
shell: bash
61-
run: |
62-
if [ ${{ steps.build_workspace.outcome }} == 'success' ]; then
63-
echo "Build was successful"
64-
summary=":heavy_check_mark: Build Success"
65-
else
66-
echo "Build failed"
67-
summary=":x: Build Failed"
68-
fi
69-
SUMMARY='
70-
<details><summary><i>Build Summary</i></summary>
71-
72-
'${summary}'
73-
</details>
74-
'
1+
name: _build
2+
on:
3+
workflow_call:
4+
inputs:
5+
docker_image:
6+
description: Docker image
7+
type: string
8+
required: true
9+
10+
jobs:
11+
build:
12+
runs-on:
13+
group: GHA-Kernel-SelfHosted-RG
14+
labels: [ self-hosted, kernel-prd-u2404-x64-large-od-ephem ]
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.ref }}
20+
fetch-depth: 0
21+
22+
- name: Pull docker image
23+
uses: ./.github/actions/pull_docker_image
24+
with:
25+
image: ${{ inputs.docker_image }}
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build workspace
29+
id: build_workspace
30+
uses: ./.github/actions/build
31+
with:
32+
docker_image: ${{ inputs.docker_image }}
33+
34+
- name: Create file list for artifacts upload
35+
run: |
36+
touch ../artifacts/file_list.txt
37+
tar -cJf modules.tar.xz ../kobj/tar-install/lib/modules/
38+
echo "modules.tar.xz" >> ../artifacts/file_list.txt
39+
echo "../kobj/arch/arm64/boot/Image" >> ../artifacts/file_list.txt
40+
echo "../kobj/vmlinux" >> ../artifacts/file_list.txt
41+
echo "../kobj/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dtb" >> ../artifacts/file_list.txt
42+
43+
- name: Upload artifacts
44+
uses: ./.github/actions/aws_s3_helper
45+
with:
46+
s3_bucket: qli-prd-kernel-gh-artifacts
47+
aws_access_key_id: ${{ secrets.AWSKEYID }}
48+
aws_secret_access_key: ${{ secrets.AWSACCESSKEY }}
49+
local_file: ../artifacts/file_list.txt
50+
mode: multi-upload
51+
52+
- name: Clean up
53+
run: |
54+
rm -rf ../artifacts
55+
rm -rf ../kobj
56+
rm -rf modules.tar.xz
57+
58+
- name: Update summary
59+
if: success() || failure()
60+
shell: bash
61+
run: |
62+
if [ ${{ steps.build_workspace.outcome }} == 'success' ]; then
63+
echo "Build was successful"
64+
summary=":heavy_check_mark: Build Success"
65+
else
66+
echo "Build failed"
67+
summary=":x: Build Failed"
68+
fi
69+
SUMMARY='
70+
<details><summary><i>Build Summary</i></summary>
71+
72+
'${summary}'
73+
</details>
74+
'
7575
echo -e "$SUMMARY" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)