mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 23:52:20 +01:00
Update open wrt test (#6010)
Adding in tests of various versions of OpenWrt. Also simplified the way to reproduce potential issues and added in breadcrumbs for debugging. Co-authored-by: Andras Fekete <andras@wolfssl.com>
This commit is contained in:
39
.github/workflows/docker-OpenWrt.yml
vendored
39
.github/workflows/docker-OpenWrt.yml
vendored
@@ -2,7 +2,8 @@
|
||||
# there aren't any compatibility issues. Take a look at Docker/OpenWrt/README.md
|
||||
name: OpenWrt test
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
group: ${{ github.head_ref || github.run_id }}
|
||||
# cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -11,23 +12,45 @@ on:
|
||||
branches: [ '*' ]
|
||||
|
||||
jobs:
|
||||
compile_container:
|
||||
name: Build OpenWrt test container
|
||||
build_library:
|
||||
name: Compile libwolfssl.so
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: alpine:latest
|
||||
steps:
|
||||
- name: Install required tools
|
||||
run: apk add argp-standalone asciidoc bash bc binutils bzip2 cdrkit coreutils diffutils elfutils-dev findutils flex musl-fts-dev g++ gawk gcc gettext git grep intltool libxslt linux-headers make musl-libintl musl-obstack-dev ncurses-dev openssl-dev patch perl python3-dev rsync tar unzip util-linux wget zlib-dev autoconf automake libtool
|
||||
- uses: actions/checkout@v3
|
||||
- name: Compile libwolfssl.so
|
||||
run: ./autogen.sh && ./configure --enable-all && make
|
||||
- name: Upload libwolfssl.so
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: libwolfssl.so
|
||||
path: src/.libs/libwolfssl.so
|
||||
retention-days: 1
|
||||
compile_container:
|
||||
name: OpenWrt test
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_library
|
||||
strategy:
|
||||
matrix:
|
||||
release: [ "snapshot", "22.03-SNAPSHOT", "21.02-SNAPSHOT" ] # some other versions: 21.02.0 21.02.5 22.03.0 22.03.3
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: libwolfssl.so
|
||||
path: Docker/OpenWrt/.
|
||||
-
|
||||
name: Build but dont push
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
context: Docker/OpenWrt
|
||||
platforms: linux/amd64
|
||||
file: Docker/OpenWrt/Dockerfile
|
||||
push: false
|
||||
tags: openwrt-test:latest
|
||||
# cache-from: type=registry,ref=openwrt-test:latest
|
||||
# cache-to: type=inline
|
||||
build-args: DOCKER_BASE_CONTAINER=openwrt/rootfs:x86-64-${{ matrix.release }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
Reference in New Issue
Block a user