Skip to content

Commit fe87258

Browse files
committed
ci: try to fix build-error caused by change for multiarch libssl
e2c3182 kbuild: deb-pkg: add pkg.linux-upstream.nokernelheaders build profile
1 parent 2790b29 commit fe87258

File tree

1 file changed

+33
-10
lines changed

1 file changed

+33
-10
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
permissions:
2626
contents: write # for softprops/action-gh-release to create GitHub release
2727
# The type of runner that the job will run on
28-
runs-on: ubuntu-latest
28+
#runs-on: ubuntu-latest
29+
runs-on: ubuntu-24.04
2930

3031
# Steps represent a sequence of tasks that will be executed as part of the job
3132
steps:
@@ -35,27 +36,49 @@ jobs:
3536
with:
3637
fetch-depth: 10
3738

38-
- name: Install depencies
39-
run: |
40-
sudo apt update
41-
sudo apt install ccache libssl-dev u-boot-tools python3-mako debhelper fakeroot gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu make device-tree-compiler libncurses5-dev libelf-dev
42-
4339
- name: Setup env
4440
run: |
4541
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
4642
echo "KERNELVER=$(make kernelversion)" >> $GITHUB_ENV
4743
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
44+
echo "UBUNTU_MAJOR_VERSION=$(cat /etc/issue | head -1|sed -e 's/^Ubuntu \([0-9]\+\).*$/\1/')" >> $GITHUB_ENV
45+
46+
- name: Print env
47+
run: |
48+
echo $BRANCH $KERNELVER $DT
49+
echo $UBUNTU_MAJOR_VERSION
50+
51+
- name: update apt-repos (u22)
52+
if: env.UBUNTU_MAJOR_VERSION == '22'
53+
run: |
54+
cat /etc/apt/sources.list
55+
sudo sed -i.bak -e 's/^deb/deb [ arch=amd64,i386 ]/' /etc/apt/sources.list
56+
#deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ jammy main universe
57+
echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ubuntu-ports jammy main universe" | sudo tee -a /etc/apt/sources.list
58+
59+
60+
- name: update apt-repos (u24)
61+
if: env.UBUNTU_MAJOR_VERSION == '24'
62+
run: |
63+
sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ports.sources
64+
sudo sed -i.bak -e 's/^\(Suites:.*\)$/\1\nArchitectures: amd64 i386/' /etc/apt/sources.list.d/ubuntu.sources
65+
sudo sed -i.bak -e 's/^URIs:.*$/URIs: http:\/\/ports.ubuntu.com\/ubuntu-ports\//' /etc/apt/sources.list.d/ports.sources
66+
sudo sed -i -e 's/^\(Suites:.*\)$/\1\nArchitectures: armhf arm64/' /etc/apt/sources.list.d/ports.sources
67+
cat /etc/apt/sources.list.d/ports.sources
68+
69+
- name: Install depencies
70+
run: |
71+
sudo dpkg --add-architecture armhf
72+
sudo dpkg --add-architecture arm64
73+
sudo apt update
74+
sudo apt install ccache libssl-dev:armhf libssl-dev:arm64 build-essential u-boot-tools python3-mako debhelper fakeroot gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu make device-tree-compiler libncurses5-dev libelf-dev
4875
4976
- name: Generate Changelog
5077
run: |
5178
echo "# CI-Build for $BRANCH ($KERNELVER)" > ${{ github.workspace }}-CHANGELOG.txt
5279
echo "last commits:" >> ${{ github.workspace }}-CHANGELOG.txt
5380
git log --pretty=format:"%h %ad %s %d by %an" --date=short >> ${{ github.workspace }}-CHANGELOG.txt
5481
55-
- name: Print env
56-
run: |
57-
echo $BRANCH $KERNELVER $DT
58-
5982
- name: Setup cache
6083
id: cache
6184
uses: actions/cache@v4

0 commit comments

Comments
 (0)