Skip to content

update to OpenWrt 24.10.0 (#41) #149

update to OpenWrt 24.10.0 (#41)

update to OpenWrt 24.10.0 (#41) #149

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
name: linting
steps:
- name: Checkout
uses: actions/checkout@v4
- name: shellcheck
run: shellcheck builder.sh
testnix:
runs-on: ubuntu-24.04
name: test nix builds
strategy:
matrix:
example: ["x86_64", "rpi4", "glinet-gl-ar750", "glinet-gl-mt300n-v2", "nexx-wt3020", "rpi2", "wrt1043nd"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: test build example
run: |
sh <(curl -L https://nixos.org/nix/install) --no-daemon
. $HOME/.nix-profile/etc/profile.d/nix.sh
mkdir -p output
time ./builder.sh build example-${{ matrix.example }}.conf --nix
- name: check artefacts
run: |
./.test/run_all.sh example-${{ matrix.example }}.conf output/
testcontainer:
runs-on: ubuntu-24.04
name: test container builds
strategy:
matrix:
example: ["x86_64", "rpi4", "glinet-gl-ar750", "glinet-gl-mt300n-v2", "nexx-wt3020", "rpi2", "wrt1043nd"]
option: ["--docker --sudo", "--podman", "--podman --sudo"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: test build example
run: |
if [[ "${{ matrix.option }}" =~ "podman" ]]; then
sudo apt-get -y update
sudo apt-get -y install podman
fi
mkdir -p output
time ./builder.sh build-docker-image \
example-${{ matrix.example }}.conf ${{ matrix.option }} &&\
time ./builder.sh build \
example-${{ matrix.example }}.conf ${{ matrix.option }}
- name: check artefacts
run: |
./.test/run_all.sh example-${{ matrix.example }}.conf output/