On Sat, 2020-04-04 at 01:14 +0300, Dmitry V. Levin wrote:
On Mon, Dec 16, 2019 at 01:12:48AM +0300, Dmitry V. Levin wrote:
> This runs "make distcheck" using gcc-9, gcc-8, gcc-7, and clang
> on x86_64, x86, x32, aarch64, s390x, and ppc64le architectures.
>
> * .travis.yml: New file.
> * ci/install-dependencies.sh: Likewise.
> * ci/run-build-and-tests.sh: Likewise.
>
> Resolves:
https://github.com/linux-pam/linux-pam/issues/28
After about a week of communication problems between github and
travis
(not limited to linux-pam project) I tried to play more with github
actions.
It might be related to Travis migrating off the old opensource
travis.org CI instance to
travis.com even for the opensource projects.
I've registered linux-pam under
travis.com and migrated the CI there
and it seems to work now.
The result is the following commit, it's also pushed to
ldv/github-ci
branch at
https://github.com/linux-pam/linux-pam/commits/ldv/github-ci
where you can see how it looks in github web interface.
Do you think this could be useful in master?
I have no problem with that. I suppose it should be a little bit more
reliable than Travis.
From 4dc9e2b8789c140ae77c4bc2aca995ff1ec8a653 Mon Sep 17 00:00:00
2001
From: "Dmitry V. Levin" <ldv(a)altlinux.org>
Date: Thu, 2 Apr 2020 23:14:44 +0000
Subject: [PATCH] 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.
Currently GitHub Actions provide better performance and parallelism,
as well as (unsurprisingly) better integration with github.
However, GitHub Actions cannot replace Travis CI completely as
the latter can build on aarch64, s390x, and ppc64le architectures.
* .github/workflows/ci.yml: New file.
---
.github/workflows/ci.yml | 173
+++++++++++++++++++++++++++++++++++++++
1 file changed, 173 insertions(+)
create mode 100644 .github/workflows/ci.yml
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..f6603be5
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,173 @@
+name: CI
+
+on: [push, pull_request]
+
+env:
+ VERBOSE: 1
+
+jobs:
+ gcc9-x86_64:
+ runs-on: ubuntu-latest
+ env:
+ CC: gcc-9
+ TARGET: x86_64
+ steps:
+ - uses: actions/checkout@v2
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - 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
+ - name: install dependencies
+ run: ci/install-dependencies.sh
+ - name: build check
+ run: ci/run-build-and-tests.sh
--
ldv
_______________________________________________
Pam-developers mailing list -- pam-developers(a)lists.fedorahosted.org
To unsubscribe send an email to
pam-developers-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/pam-developers@lists.fedorah...
--
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]