diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-04-02 23:14:44 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-04-07 14:25:00 +0000 |
commit | d5303aa01f724e5b20adeb940e08a6200d48cdf4 (patch) | |
tree | 450110197b79d27749bc11eba3c503bd485ce989 /.github | |
parent | 95f52b7a26d4fef7e87cb88f3e145ad2d6a11ef6 (diff) | |
download | pam-d5303aa01f724e5b20adeb940e08a6200d48cdf4.tar.gz pam-d5303aa01f724e5b20adeb940e08a6200d48cdf4.tar.bz2 pam-d5303aa01f724e5b20adeb940e08a6200d48cdf4.zip |
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.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 224 | ||||
-rw-r--r-- | .github/workflows/whitespace-errors-check.yml | 11 |
2 files changed, 224 insertions, 11 deletions
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 |