Skip to content
Merged
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
55 changes: 37 additions & 18 deletions .github/workflows/hostap-vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,21 @@ jobs:
with:
path: hostap
key: hostap-repo
lookup-only: true

- name: Checkout hostap
if: steps.cache.outputs.cache-hit != 'true'
run: git clone https://w1.fi/hostap.git hostap

- name: tar hostap
run: tar -zcf hostap.tgz hostap

- name: Upload hostap repo
uses: actions/upload-artifact@v4
with:
name: hostap-repo
path: hostap.tgz
retention-days: 1

build_uml_linux:
name: Build UML (UserMode Linux)
if: github.repository_owner == 'wolfssl'
Expand All @@ -96,15 +105,16 @@ jobs:
with:
path: linux/linux
key: hostap-linux-${{ env.LINUX_REF }}
lookup-only: true

- name: Checking if we have hostap in cache
- name: Download hostap repo
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@v4
uses: actions/download-artifact@v4
with:
path: hostap
key: hostap-repo
fail-on-cache-miss: true
name: hostap-repo

- name: untar hostap
if: steps.cache.outputs.cache-hit != 'true'
run: tar -xf hostap.tgz

- name: Checkout linux
if: steps.cache.outputs.cache-hit != 'true'
Expand All @@ -122,6 +132,13 @@ jobs:
cd linux
yes "" | ARCH=um make -j $(nproc)

- name: Upload kernel binary
uses: actions/upload-artifact@v4
with:
name: uml-linux-kernel
path: linux/linux
retention-days: 1

hostap_test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -170,13 +187,14 @@ jobs:
timeout-minutes: 45
needs: [build_wolfssl, build_uml_linux, checkout_hostap]
steps:
- name: Checking if we have kernel in cache
uses: actions/cache/restore@v4
id: cache
- name: Download kernel binary
uses: actions/download-artifact@v4
with:
path: linux/linux
key: hostap-linux-${{ env.LINUX_REF }}
fail-on-cache-miss: true
name: uml-linux-kernel
path: linux

- name: Restore kernel binary executable bit
run: chmod +x linux/linux

# No way to view the full strategy in the browser (really weird)
- name: Print strategy
Expand Down Expand Up @@ -215,12 +233,13 @@ jobs:
- name: Install pip dependencies
run: sudo pip install pycryptodome

- name: Checking if we have hostap in cache
uses: actions/cache/restore@v4
- name: Download hostap repo
uses: actions/download-artifact@v4
with:
path: hostap
key: hostap-repo
fail-on-cache-miss: true
name: hostap-repo

- name: untar hostap
run: tar -xf hostap.tgz

- name: Checkout correct ref
working-directory: hostap
Expand Down
Loading