Skip to content

Add FIXUP option, for automatic package hash. #43

Add FIXUP option, for automatic package hash.

Add FIXUP option, for automatic package hash. #43

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 .
try_options: # To test options such as FIXUP
name: Options (FIXUP=${{ matrix.fixup }}, IGNORE_PKG_HASH_ISSUE=${{ matrix.ignorehash }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release:
- master
arch: # arch and release variants are tested above, so limit these here
- x86-64
fixup:
- 1
- 0
ignorehash:
- 1
- 0
steps:
- uses: actions/checkout@v4
- 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: uclient-fetch
FIXUP: ${{ matrix.fixup }}
IGNORE_PKG_HASH_ISSUE: ${{ matrix.ignorehash }}
- 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 .