aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Trangoni <mario@mariotrangoni.de>2020-12-19 17:01:34 +0100
committerMario Trangoni <mjtrangoni@gmail.com>2021-02-06 18:13:39 +0100
commite0e999f4ccfdb633199c35223802f39569586482 (patch)
treed147182023d9d297f549d0b11fd59cea7b4300a8
parent0e2b7971343845248353f6d8503e28506e9536ea (diff)
downloadnx-libs-e0e999f4ccfdb633199c35223802f39569586482.tar.gz
nx-libs-e0e999f4ccfdb633199c35223802f39569586482.tar.bz2
nx-libs-e0e999f4ccfdb633199c35223802f39569586482.zip
Implement github actions basics
-rw-r--r--.github/workflows/nx-libs.yml56
1 files changed, 56 insertions, 0 deletions
diff --git a/.github/workflows/nx-libs.yml b/.github/workflows/nx-libs.yml
new file mode 100644
index 000000000..cc4878498
--- /dev/null
+++ b/.github/workflows/nx-libs.yml
@@ -0,0 +1,56 @@
+name: nx-libs CI
+
+on:
+ push:
+ branches: [ 3.6.x ]
+ pull_request:
+ branches: [ 3.6.x ]
+
+jobs:
+ build:
+ name: Build on ${{ matrix.cfg.container }} - ${{ matrix.cfg.cpp-version }}
+ runs-on: ubuntu-latest
+ container: ${{ matrix.cfg.container }}
+ strategy:
+ fail-fast: false
+ matrix:
+ cfg:
+ - { container: 'ubuntu:16.04', cpp-version: gcc }
+ - { container: 'ubuntu:16.04', cpp-version: clang }
+ - { container: 'ubuntu:20.04', cpp-version: gcc }
+ - { container: 'ubuntu:20.04', cpp-version: clang }
+ - { container: 'debian:stable', cpp-version: gcc }
+ - { container: 'debian:stable', cpp-version: clang }
+ - { container: 'debian:sid', cpp-version: gcc }
+ - { container: 'debian:sid', cpp-version: clang }
+ - { container: 'centos:7', cpp-version: gcc }
+ - { container: 'centos:7', cpp-version: clang }
+ - { container: 'centos:8', cpp-version: gcc }
+ - { container: 'centos:8', cpp-version: clang }
+ - { container: 'fedora:latest', cpp-version: gcc }
+ - { container: 'fedora:latest', cpp-version: clang }
+
+ steps:
+ - name: Install compiler ${{ matrix.cfg.cpp-version }}
+ shell: sh
+ run: |
+ case "${{ matrix.cfg.container }}" in
+ ubuntu*|debian*)
+ cat /etc/debian_version
+ apt-get update -q -y
+ apt-get install -q -y ${{ matrix.cfg.cpp-version }}
+ ${{ matrix.cfg.cpp-version }} --version
+ ;;
+ fedora*)
+ cat /etc/fedora-release
+ dnf -y update
+ dnf -y install ${{ matrix.cfg.cpp-version }}
+ ${{ matrix.cfg.cpp-version }} --version
+ ;;
+ centos*)
+ cat /etc/centos-release
+ yum -y update
+ yum -y install ${{ matrix.cfg.cpp-version }}
+ ${{ matrix.cfg.cpp-version }} --version
+ ;;
+ esac