-
Notifications
You must be signed in to change notification settings - Fork 42
152 lines (143 loc) · 4.54 KB
/
linux_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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: Test on Linux distros
on: [push]
jobs:
arch-20230122:
name: Arch 20230122.0.120412
runs-on: ubuntu-latest
container:
image: docker://archlinux:base-devel-20230122.0.120412
steps:
- name: Pacman Update
run: |
pacman-key --init
pacman-key --populate
pacman -Sy --noconfirm archlinux-keyring
pacman -Syu --noconfirm
- name: Install Deps
run: |
pacman -S --noconfirm openssh git make cmake gcc
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules [email protected]:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg
- name: Compile Server Dummy
run: |
cd repo/lib/swicc/tool/server-dummy
make
- name: Run swSIM
run: |
cd repo
cd ./lib/swicc/tool/server-dummy && ./build/server-dummy.elf 37324 example.txt &
sleep 4s
(./build/swsim.elf -f ./out.swiccfs -g ./data/gsm.json) || code=$?; if [ $code -ne 2 ]; then exit $code; fi
debian-11:
name: Debian 11
runs-on: ubuntu-latest
container:
image: docker://debian:bullseye
steps:
- name: APT Update
run: |
apt-get -qq update
- name: Install Deps
run: |
apt-get -qq -y install git make cmake gcc
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules [email protected]:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg
- name: Compile Server Dummy
run: |
cd repo/lib/swicc/tool/server-dummy
make
- name: Run swSIM
run: |
cd repo
cd ./lib/swicc/tool/server-dummy && ./build/server-dummy.elf 37324 example.txt &
sleep 4s
(./build/swsim.elf -f ./out.swiccfs -g ./data/gsm.json) || code=$?; if [ $code -ne 2 ]; then exit $code; fi
fedora-37:
name: Fedora 37
runs-on: ubuntu-latest
container:
image: docker://fedora:37
steps:
- name: DNF Update
run: |
dnf -q check-update || code=$?; if [ $code -ne 0 or $code -ne 100 ]; then exit $code; fi
- name: Install Deps
run: |
dnf -q -y install git make cmake gcc libasan
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules [email protected]:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg
- name: Compile Server Dummy
run: |
cd repo/lib/swicc/tool/server-dummy
make
- name: Run swSIM
run: |
cd repo
cd ./lib/swicc/tool/server-dummy && ./build/server-dummy.elf 37324 example.txt &
sleep 4s
(./build/swsim.elf -f ./out.swiccfs -g ./data/gsm.json) || code=$?; if [ $code -ne 2 ]; then exit $code; fi
opensuse-leap-15-4:
name: openSUSE Leap 15.4
runs-on: ubuntu-latest
container:
image: docker://opensuse/leap:15.4
steps:
- name: Zypper Update
run: |
zypper -nq update
- name: Install Deps
run: |
zypper -nq install git make cmake gcc11 openssh
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Checkout
run: |
git clone --recurse-submodules [email protected]:${{ github.repository }}.git repo
- name: Compile
run: |
cd repo
make main-dbg
- name: Compile Server Dummy
run: |
cd repo/lib/swicc/tool/server-dummy
make
- name: Run swSIM
run: |
cd repo
cd ./lib/swicc/tool/server-dummy && ./build/server-dummy.elf 37324 example.txt &
sleep 4s
(./build/swsim.elf -f ./out.swiccfs -g ./data/gsm.json) || code=$?; if [ $code -ne 2 ]; then exit $code; fi