-
Notifications
You must be signed in to change notification settings - Fork 54
80 lines (67 loc) · 2.18 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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: bwmon
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 .