Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/linuxkm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,13 @@ jobs:
- uses: actions/checkout@v4
name: Checkout wolfSSL

- name: Install linux-headers
uses: ./.github/actions/install-apt-deps
with:
packages: linux-headers-$(uname -r)
Comment on lines +31 to +34

- name: Prepare target kernel for module builds
run: |
echo "updating linux-headers"
apt_ok=false
for i in 1 2 3; do
if sudo apt-get update && sudo apt-get install -y linux-headers-$(uname -r); then
apt_ok=true
break
fi
echo "::warning::apt-get failed (attempt $i/3), retrying..."
sleep $((5 * i))
done
if [ "$apt_ok" != true ]; then exit 2; fi
echo "preparing target kernel $(uname -r)"
pushd "/lib/modules/$(uname -r)/build" || $(exit 4)
if [ -f /proc/config.gz ]; then gzip -dc /proc/config.gz > /tmp/.config && sudo mv /tmp/.config . || $(exit 5); elif [ -f "/boot/config-$(uname -r)" ]; then sudo cp -p "/boot/config-$(uname -r)" .config || $(exit 6); fi
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/multi-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ jobs:
# This should be a safe limit for the tests to run.
timeout-minutes: 10
steps:
- name: Install Compiler
run: |
sudo apt update
sudo apt install -y crossbuild-essential-${{ matrix.ARCH }} qemu-user
- uses: actions/checkout@v4
- name: Install Compiler
uses: ./.github/actions/install-apt-deps
with:
packages: crossbuild-essential-${{ matrix.ARCH }} qemu-user
- name: Build for ${{ matrix.ARCH }} with ${{ matrix.opts.name }}
env:
CC: ${{ matrix.CC }}
Expand Down
Loading