ci: add CI via GitHub Actions
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 26 Jul 2020 14:20:45 +0000 (15:20 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 20 Jun 2021 19:36:55 +0000 (20:36 +0100)
commitce1b5612ce9960e50a15ab3b80bb40ef946b47a7
tree0138a01c023f56651daf904a2c589d32723ddb38
parentd3dacdc61dfe878fda0c363084c4330492e38b2b
ci: add CI via GitHub Actions

- Add GitHub Actions CI on push and pull requests for:
  - Ubuntu 20.04 x86_64 gcc
  - Ubuntu 20.04 x86_64 clang
  - Ubuntu 20.04 i686 gcc
  - macOS 10.15
- Set the same dpkg flags as found in a default Ubuntu docker container.
  This has the following benefits:
  - Reduction in the amount of fsyncing dpkg/apt does
  - Installation/configuring of documentation is skipped
- On macOS Speed up homewbrew by not updating on install

v2:
- Use macOS 10.15 rather than 11.0 because 11.0 is only private preview
  (https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners
  ).
- Workaround "Could not perform immediate configuration on
  'libgcc-s1:i386'." on the Ubuntu 20.04 i686 configuration (see
  https://bugs.launchpad.net/ubuntu-cdimage/+bug/1871268/comments/170
  for details of the underlying issue).
- Install i386 development zlib.

Thanks to Lukasz Dorau for pointing the above out!

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
.github/workflows/ci.yml [new file with mode: 0644]
ci/actions-build.sh [new file with mode: 0755]
ci/actions-full-test.sh [new file with mode: 0755]
ci/actions-install.sh [new file with mode: 0755]
ci/actions-smoke-test.sh [new file with mode: 0755]
ci/common.sh [new file with mode: 0644]