-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathintegration-tests-hamlib4x.yaml
More file actions
109 lines (93 loc) · 2.85 KB
/
integration-tests-hamlib4x.yaml
File metadata and controls
109 lines (93 loc) · 2.85 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: Hamlib v4.x integration tests
on:
push:
paths:
- "**"
- "!**.md"
- "!**LICENSE"
- "!**.gitignore"
- "!**.clang-format"
- "!library.json"
- "!.github/workflows/**.yaml"
- ".github/workflows/integration-tests-hamlib4x.yaml"
pull_request:
paths:
- "**"
- "!**.md"
- "!**LICENSE"
- "!**.gitignore"
- "!**.clang-format"
- "!library.json"
- "!.github/workflows/**.yaml"
- ".github/workflows/integration-tests-hamlib4x.yaml"
jobs:
integration-tests:
name: Hamlib v-${{ matrix.hamlib-version }} integration tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
hamlib-version: ["master", "4.4", "4.3", "4.2", "4.1", "4.0"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache Hamlib
uses: actions/cache@v3
id: hamlib-cache
with:
path: ~/hamlib-src
key: ${{ runner.os }}-hamlib-version-${{ matrix.hamlib-version }}
- name: Checkout Hamlib source
if: steps.hamlib-cache.outputs.cache-hit != 'true'
run: |
git clone --depth 1 --branch ${{ matrix.hamlib-version }} https://github.com/Hamlib/Hamlib.git ~/hamlib-src
- name: Install Hamlib v-${{ matrix.hamlib-version }} build tools
run: |
sudo apt install -y make build-essential autoconf automake libtool shtool pkg-config libusb-1.0-0-dev
- name: Configure Hamlib v-${{ matrix.hamlib-version }}
if: steps.hamlib-cache.outputs.cache-hit != 'true'
run: |
cd ~/hamlib-src
./bootstrap
./configure
continue-on-error: true
- name: Build Hamlib v-${{ matrix.hamlib-version }}
if: steps.hamlib-cache.outputs.cache-hit != 'true'
run: |
cd ~/hamlib-src
make
- name: Install Hamlib v-${{ matrix.hamlib-version }}
run: |
cd ~/hamlib-src
sudo make install
sudo ldconfig
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Install socat
run: |
sudo apt install -y socat
- name: Integration tests
run: |
cd test
platformio run -e native -t integration
- name: Upload log
uses: actions/upload-artifact@v3
with:
name: test-program.log
path: ./test/program.log