Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to github actions #131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/build_test.yml
@@ -0,0 +1,76 @@
name: Build/Test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add permissions: too

on:
push:
branches:
- master
pull_request:
types: [opened, reopened, labeled, synchronize]

jobs:
ubuntu_build:
name: Build and test ${{ matrix.name }}
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
strategy:
matrix:
include:
- name: cmake:gcc7:ubuntu.20.04
build_system: cmake
c_compiler: gcc-7
cxx_compiler: g++-7
extra_apt_pkgs: gcc-7 g++-7
os: ubuntu-20.04

- name: cmake:gcc8:ubuntu.20.04
build_system: cmake
c_compiler: gcc-8
cxx_compiler: g++-8
extra_apt_pkgs: gcc-8 g++-8
os: ubuntu-20.04

- name: cmake:gcc9:ubuntu.22.04
build_system: cmake
c_compiler: gcc-9
cxx_compiler: g++-9
os: ubuntu-22.04

- name: cmake:gcc10:ubuntu.22.04
build_system: cmake
c_compiler: gcc-10
cxx_compiler: g++-10
os: ubuntu-22.04

- name: cmake:gcc11:ubuntu.22.04
build_system: cmake
c_compiler: gcc-11
cxx_compiler: g++-11
os: ubuntu-22.04

- name: cmake:gcc12:ubuntu.22.04
build_system: cmake
c_compiler: gcc-12
cxx_compiler: g++-12
extra_apt_pkgs: gcc-12 g++-12
os: ubuntu-22.04

env:
CC: ${{ matrix.c_compiler || 'gcc' }}
CXX: ${{ matrix.cxx_compiler || 'gcc' }}
steps:
- name: Install extra deps @ Ubuntu
if: ${{ runner.os == 'Linux' }}
run: |
EXTRA_PACKAGES="${{ matrix.extra_apt_pkgs || '' }}"
sudo apt update
sudo apt install -y ${EXTRA_PACKAGES}
- name: Checkout the source
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 1
- name: Run compile script
run: script/.actions-compile.sh
- name: Run before test script
run: script/.actions-before-test.sh
- name: Test script
run: script/.actions-test.sh
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@ ngx_brotli is a set of two nginx modules:
- ngx_brotli filter module - used to compress responses on-the-fly,
- ngx_brotli static module - used to serve pre-compressed files.

[![TravisCI Build Status](https://travis-ci.org/google/ngx_brotli.svg?branch=master)](https://travis-ci.org/google/ngx_brotli)
[![Build/Test](https://github.com/google/ngx_brotli/actions/workflows/build_test.yml/badge.svg?branch=master)](https://github.com/google/ngx_brotli/actions/workflows/build_test.yml)

## Table of Contents

Expand Down
Expand Up @@ -16,7 +16,7 @@ if [ ! -d logs ]; then
fi

# Download sample texts.
curl --compressed -o $FILES/war-and-peace.txt http://www.gutenberg.org/files/2600/2600-0.txt
curl --compressed -o $FILES/war-and-peace.txt https://www.gutenberg.org/files/2600/2600-0.txt
echo "Kot lomom kolol slona!" > $FILES/small.txt
echo "<html>Kot lomom kolol slona!</html>" > $FILES/small.html

Expand Down
File renamed without changes.
File renamed without changes.