Update CI.yml

This commit is contained in:
Aditya Garg 2022-11-08 01:00:34 +05:30 committed by GitHub
parent d74bf5cc79
commit c5d5ad3442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -29,19 +29,20 @@ jobs:
-t \ -t \
-v "$(pwd)":/repo \ -v "$(pwd)":/repo \
${DOCKER_IMAGE} \ ${DOCKER_IMAGE} \
/bin/bash -c 'cd /repo && \ /bin/bash -c "cd /repo && \
apt-get update && \ apt-get update && \
apt-get install -y lsb-release git wget && \ apt-get install -y lsb-release git wget && \
mkdir /tmp/artifacts && \ mkdir /tmp/artifacts && \
git clone https://github.com/t2linux/T2-Ubuntu-Kernel.git && \ git clone https://github.com/t2linux/T2-Ubuntu-Kernel.git && \
sed -i 's/LOCALVERSION=-t2-\"${CODENAME}\"/LOCALVERSION=-t2-external/g' /repo/T2-Ubuntu-Kernel/build.sh && cd /repo/T2-Ubuntu-Kernel && \ sed -i "s/CODENAME=.*/CODENAME=external/g" /repo/T2-Ubuntu-Kernel/build.sh && cd /repo/T2-Ubuntu-Kernel && \
cd /repo/T2-Ubuntu-Kernel/patches && \ cd /repo/T2-Ubuntu-Kernel/patches && \
wget https://github.com/AdityaGarg8/T2-Ubuntu/raw/ssd/ssd.patch && \ wget https://github.com/AdityaGarg8/T2-Ubuntu/raw/ssd/ssd.patch && \
cd /repo/T2-Ubuntu-Kernel && \ cd /repo/T2-Ubuntu-Kernel && \
./build.sh && mkdir /repo/debs && \ ./build.sh && mkdir /repo/debs && \
rm /tmp/artifacts/*dbg* && \ rm /tmp/artifacts/*dbg* && \
rm /tmp/artifacts/*libc-dev* && \ rm /tmp/artifacts/*libc-dev* && \
cp -r /tmp/artifacts/* /repo/debs' cp -r /tmp/artifacts/* /repo/debs"
mkdir /tmp/artifacts
cp -r "$(pwd)"/debs/* /tmp/artifacts cp -r "$(pwd)"/debs/* /tmp/artifacts
- name: Upload package artifact - name: Upload package artifact