forked from red/red
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (72 loc) · 1.97 KB
/
RPi.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
81
82
83
84
85
86
87
88
89
90
name: RPi
on: push
jobs:
Build-RPi-Tests:
runs-on: ubuntu-latest
name: Build RPi Tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Red Tests
uses: ./CI/Linux-32
with:
command: rebol -qws tests/build-arm-tests.r -t RPi
- name: Build Red/System Tests
uses: ./CI/Linux-32
with:
command: rebol -qws system/tests/build-arm-tests.r -t RPi
- uses: actions/upload-artifact@v4
with:
name: rpi-tests-bin
path: quick-test/runnable/arm-tests/red
retention-days: 3
- uses: actions/upload-artifact@v4
with:
name: rpi-rs-bin
path: quick-test/runnable/arm-tests/system
retention-days: 3
Run-RS-Tests-Armbian:
runs-on: [self-hosted, Linux, ARM64]
needs: Build-RPi-Tests
steps:
- name: Clean working directory
run: |
echo "Cleaning up previous run"
rm -rf ${{ github.workspace }}/*
- name: Retrieve tests
uses: actions/download-artifact@v4
with:
name: rpi-rs-bin
- name: Run tests
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/.
chmod +x run-all.sh
./run-all.sh
# upload log file if any test failed
- uses: actions/upload-artifact@v4
if: failure()
with:
name: RS-Tests-Armbian-log
path: quick-test.log
Run-Red-Tests-Armbian:
runs-on: [self-hosted, Linux, ARM64]
needs: Run-RS-Tests-Armbian
steps:
- name: Clean working directory
run: |
echo "Cleaning up previous run"
rm -rf ${{ github.workspace }}/*
- name: Retrieve tests
uses: actions/download-artifact@v4
with:
name: rpi-tests-bin
- name: Run tests
run: |
chmod +x run-all.sh
./run-all.sh
# upload log file if any test failed
- uses: actions/upload-artifact@v4
if: failure()
with:
name: Red-Tests-Armbian-log
path: quick-test.log