From 295b9cfe1ae3aa23c1ffc3af2ab1f6f28f70a9c0 Mon Sep 17 00:00:00 2001 From: redraincatching <99604494+redraincatching@users.noreply.github.com> Date: Mon, 17 Jun 2024 02:18:50 +0100 Subject: [PATCH] added support for amazon linux and renamed tests.yml (#1401) superseding changes made in pr https://github.com/coturn/coturn/pull/1394 on request of @jonesmz dependent on pr https://github.com/coturn/coturn/pull/1399 - uses the composite action for dependency installation i wrote there added YAML file for amazon linux and renames tests.yml to ubuntu_tests.yml for clarity --- .github/workflows/amazon_linux_tests.yml | 40 +++++++++++++++++++ .../workflows/{tests.yml => ubuntu_tests.yml} | 4 +- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/amazon_linux_tests.yml rename .github/workflows/{tests.yml => ubuntu_tests.yml} (87%) diff --git a/.github/workflows/amazon_linux_tests.yml b/.github/workflows/amazon_linux_tests.yml new file mode 100644 index 0000000..fe1051a --- /dev/null +++ b/.github/workflows/amazon_linux_tests.yml @@ -0,0 +1,40 @@ +name: AmazonLinux + +on: + push: + pull_request: + types: [ opened, reopened, synchronize ] + +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 diff --git a/.github/workflows/tests.yml b/.github/workflows/ubuntu_tests.yml similarity index 87% rename from .github/workflows/tests.yml rename to .github/workflows/ubuntu_tests.yml index 99ace59..5cc7fef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: Ubuntu on: push: @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ 'ubuntu:16.04', 'ubuntu:18.04', 'ubuntu:20.04', 'ubuntu:22.04' ] + os: [ 'ubuntu:16.04', 'ubuntu:18.04', 'ubuntu:20.04', 'ubuntu:22.04' ] runs-on: ubuntu-latest container: ${{ matrix.os }} steps: