From d5303aa01f724e5b20adeb940e08a6200d48cdf4 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 2 Apr 2020 23:14:44 +0000 Subject: github: add CI action Somewhat similar to Travis CI, this runs "make distcheck" on Ubuntu 18.04 using gcc-9, gcc-8, gcc, clang-9, clang-8, and clang on x86_64, x86, and x32 architectures. Compared with Travis CI, GitHub Actions service currently provides a significantly better parallelism as well as (unsurprisingly) better integration with github. However, GitHub Actions cannot replace Travis CI completely yet as the latter can build on aarch64, s390x, and ppc64le architectures. * .github/workflows/whitespace-errors-check.yml: Remove * .github/workflows/ci.yml: New file. --- .github/workflows/ci.yml | 224 ++++++++++++++++++++++++++ .github/workflows/whitespace-errors-check.yml | 11 -- 2 files changed, 224 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/whitespace-errors-check.yml (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..8e9b5309 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,224 @@ +name: CI + +on: [push, pull_request] + +env: + VERBOSE: 1 + +jobs: + whitespace-errors: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: check + run: git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904 + + gcc9-x86_64: + runs-on: ubuntu-latest + env: + CC: gcc-9 + TARGET: x86_64 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc8-x86_64: + runs-on: ubuntu-latest + env: + CC: gcc-8 + TARGET: x86_64 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc-x86_64: + runs-on: ubuntu-latest + env: + CC: gcc + TARGET: x86_64 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + clang9-x86_64: + runs-on: ubuntu-latest + env: + CC: clang-9 + TARGET: x86_64 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + clang8-x86_64: + runs-on: ubuntu-latest + env: + CC: clang-8 + TARGET: x86_64 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + clang-x86_64: + runs-on: ubuntu-latest + env: + CC: clang + TARGET: x86_64 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc9-x86: + runs-on: ubuntu-latest + env: + CC: gcc-9 + TARGET: x86 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc8-x86: + runs-on: ubuntu-latest + env: + CC: gcc-8 + TARGET: x86 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc-x86: + runs-on: ubuntu-latest + env: + CC: gcc + TARGET: x86 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + clang9-x86: + runs-on: ubuntu-latest + env: + CC: clang-9 + TARGET: x86 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + clang8-x86: + runs-on: ubuntu-latest + env: + CC: clang-8 + TARGET: x86 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + clang-x86: + runs-on: ubuntu-latest + env: + CC: clang + TARGET: x86 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc9-x32: + runs-on: ubuntu-latest + env: + CC: gcc-9 + TARGET: x32 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc8-x32: + runs-on: ubuntu-latest + env: + CC: gcc-8 + TARGET: x32 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh + + gcc-x32: + runs-on: ubuntu-latest + env: + CC: gcc + TARGET: x32 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: install dependencies + run: ci/install-dependencies.sh + - name: build check + run: ci/run-build-and-tests.sh diff --git a/.github/workflows/whitespace-errors-check.yml b/.github/workflows/whitespace-errors-check.yml deleted file mode 100644 index 5630146b..00000000 --- a/.github/workflows/whitespace-errors-check.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Whitespace Errors Check - -on: [push, pull_request] - -jobs: - check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: whitespace errors check - run: git diff-index --check --cached 4b825dc642cb6eb9a060e54bf8d69288fbee4904 -- cgit v1.2.3