Add FIXUP option, for automatic package hash. #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: privoxy | |
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 . |