container:
image: ${{ matrix.env.OS }}
+ env:
+ HOSTAPD_BUILD_DIR: /tmp/eapol_test.ci
+ HOSTAPD_GIT_TAG: hostap_2_8
+
name: "DEB build"
steps:
run: |
pwd
ls -la
- cp -r freeradius freeradius-tests
mkdir debs
ls -la
krb5-config --all || :
openssl version
- - name: Run tests and build eapol_test
- run: |
- apt-get install -y libnl-3-dev libnl-genl-3-dev
- ./configure
- make -j `nproc`
- make test
- mv scripts/ci/eapol_test/eapol_test ../debs/
- working-directory: freeradius-tests
-
- name: Build DEBs
run: |
make deb
run: |
mv *.deb debs/
+ - name: Restore eapol_test build directory from cache
+ uses: actions/cache@v2
+ id: hostapd-cache
+ with:
+ path: ${{ env.HOSTAPD_BUILD_DIR }}
+ key: hostapd-${{ matrix.env.NAME }}-${{ env.HOSTAPD_GIT_TAG }}-v1
+
+ - name: Build eapol_test
+ run: |
+ apt-get install -y libnl-3-dev libnl-genl-3-dev
+ scripts/ci/eapol_test-build.sh
+ mv scripts/ci/eapol_test/eapol_test ../debs
+ working-directory: freeradius
+
- name: Store DEBs
uses: actions/upload-artifact@v2
with: