forked from coturn/coturn
-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (37 loc) · 1.22 KB
/
amazon_linux_tests.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
name: AmazonLinux
on:
push:
pull_request:
types: [ opened, reopened, synchronize ]
# make GHA actions use node16 to use ancient container images
# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
# Unclear how long this will work though
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
builds:
strategy:
fail-fast: false
matrix:
# amazonlinux 2 is end-of-life 2025-06
os: [ 'amazonlinux:2', 'amazonlinux:2023' ]
runs-on: ubuntu-latest
container: ${{ matrix.os }}
steps:
- name: Install Dependencies
run: |
yum install -y gcc make gzip tar openssl-devel libevent-devel
# Delay checkout until after dependencies have been installed. Amazon linux is very minimal and lacks basic stuff by default.
# use v3 of checkout until the weird container, nodejs, glibc issue is fixed
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure
run: ./configure
- name: Compile
run: make
- name: Unit Test
run: make check
- name: Integration Test
working-directory: examples
run: ./run_tests.sh && ./run_tests_conf.sh