-
Notifications
You must be signed in to change notification settings - Fork 54
41 lines (34 loc) · 1.01 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 .