Skip to content

Use GH Action by Docker for caching and better output #49

Use GH Action by Docker for caching and better output

Use GH Action by Docker for caching and better output #49

Workflow file for this run

name: Test
on:
pull_request:
jobs:
build:
name: Test ${{ matrix.arch }}-${{ matrix.release }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release:
- master
- 23.05.2
- 23.05.0
- 22.03.2
arch:
- arm_cortex-a15_neon-vfpv4
- mips_24kc
- x86_64
steps:
- uses: actions/checkout@v3
- name: Add test directories
run: mkdir artifacts feed
- name: Build
uses: ./
env:
ARCH: ${{ matrix.arch }}-${{ matrix.release }}
ARTIFACTS_DIR: ${{ github.workspace }}/artifacts
FEED_DIR: ${{ github.workspace }}/feed
PACKAGES: vim privoxy
- name: Verify packages saved
run: find artifacts/bin/packages/${{ matrix.arch }}/packages/ -maxdepth 1 -name '*.ipk' -type f | grep .
- name: Verify logs saved
run: find artifacts/logs/package/feeds/packages/ -mindepth 2 -maxdepth 2 -name compile.txt -type f | grep .