Skip to content

Commit

Permalink
Feature/289 GitHub actions (#290)
Browse files Browse the repository at this point in the history
* #289: build

* #289: build plugin.

* #289: submodules

* submodules

* upgrade git

* clean outdated repos
  • Loading branch information
jrse authored Mar 2, 2022
1 parent 06e862f commit c0d5071
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: container build

on:
push:
branches:
- '**'

jobs:
container-job:

runs-on: ubuntu-latest
container: cephdovecot/travis-build-master-2.3:latest

steps:
- name: clean outdated repos
run: rm /etc/apt/sources.list.d/*
- name: add git
run: add-apt-repository ppa:git-core/ppa -y
- name: update
run: (DEBIAN_FRONTEND=noninteractive apt update & apt-get install -qq -y flex bison git)
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: update dovecot
run: (cd /usr/local/src/dovecot; git fetch origin)
- name: update dovecot branch
run: (cd /usr/local/src/dovecot; git checkout 2.3.15)
- name: install missing packages apt-get
run: (DEBIAN_FRONTEND=noninteractive apt-get install -qq -y flex bison)
- name: autogen dovecot
run: (cd /usr/local/src/dovecot; ./autogen.sh && ./configure --enable-maintainer-mode --enable-devel-checks --with-zlib)
- name: build dovecot
run: (cd /usr/local/src/dovecot; make install)
- name: configure
run: ./autogen.sh && ./configure --with-dovecot=/usr/local/lib/dovecot --enable-maintainer-mode --enable-debug --with-integration-tests --enable-valgrind --enable-debug
- name: build
run: make clean install

0 comments on commit c0d5071

Please sign in to comment.