* [PATCH 0/3] Add GitHub Actions support
@ 2021-06-22 14:12 Petr Vorel
2021-06-22 14:12 ` [PATCH 1/3] CI: Rename travis script directory Petr Vorel
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Petr Vorel @ 2021-06-22 14:12 UTC (permalink / raw)
To: linux-integrity; +Cc: Petr Vorel, Mimi Zohar
Hi Mimi,
Travis is unreliable due "pull rate limit" issue, workaround does not
work any more. Also GitHub Actions is a recommended way for projects
hosted on GitHub.
Nice bonus is that manual podman activation for distros using glibc >=
2.33 (e.g. openSUSE Tumbleweed, Fedora) it's not needed in GitHub.
Unlike LTP, where I removed Travis CI support, I kept it for
ima-evm-utils, because you use it.
Kind regards,
Petr
Petr Vorel (3):
CI: Rename travis script directory
CI/openSUSE: Fix tpm_server symlink creation
CI: Introduce GitHub Actions setup
.github/workflows/ci.yml | 121 +++++++++++++++++++++++++
.travis.yml | 2 +-
{travis => ci}/alpine.sh | 0
{travis => ci}/centos.sh | 0
{travis => ci}/debian.cross-compile.sh | 0
{travis => ci}/debian.i386.sh | 0
{travis => ci}/debian.sh | 0
{travis => ci}/fedora.sh | 0
{travis => ci}/opensuse.sh | 0
{travis => ci}/tumbleweed.sh | 2 +-
{travis => ci}/ubuntu.sh | 0
11 files changed, 123 insertions(+), 2 deletions(-)
create mode 100644 .github/workflows/ci.yml
rename {travis => ci}/alpine.sh (100%)
rename {travis => ci}/centos.sh (100%)
rename {travis => ci}/debian.cross-compile.sh (100%)
rename {travis => ci}/debian.i386.sh (100%)
rename {travis => ci}/debian.sh (100%)
rename {travis => ci}/fedora.sh (100%)
rename {travis => ci}/opensuse.sh (100%)
rename {travis => ci}/tumbleweed.sh (90%)
rename {travis => ci}/ubuntu.sh (100%)
--
2.32.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/3] CI: Rename travis script directory
2021-06-22 14:12 [PATCH 0/3] Add GitHub Actions support Petr Vorel
@ 2021-06-22 14:12 ` Petr Vorel
2021-06-22 14:12 ` [PATCH 2/3] CI/openSUSE: Fix tpm_server symlink creation Petr Vorel
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2021-06-22 14:12 UTC (permalink / raw)
To: linux-integrity; +Cc: Petr Vorel, Mimi Zohar
This is a preparation for adding GitHub Actions support.
Also run from root directory. It's a bit confusing to run from
travis directory.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
.travis.yml | 2 +-
{travis => ci}/alpine.sh | 0
{travis => ci}/centos.sh | 0
{travis => ci}/debian.cross-compile.sh | 0
{travis => ci}/debian.i386.sh | 0
{travis => ci}/debian.sh | 0
{travis => ci}/fedora.sh | 0
{travis => ci}/opensuse.sh | 0
{travis => ci}/tumbleweed.sh | 0
{travis => ci}/ubuntu.sh | 0
10 files changed, 1 insertion(+), 1 deletion(-)
rename {travis => ci}/alpine.sh (100%)
rename {travis => ci}/centos.sh (100%)
rename {travis => ci}/debian.cross-compile.sh (100%)
rename {travis => ci}/debian.i386.sh (100%)
rename {travis => ci}/debian.sh (100%)
rename {travis => ci}/fedora.sh (100%)
rename {travis => ci}/opensuse.sh (100%)
rename {travis => ci}/tumbleweed.sh (100%)
rename {travis => ci}/ubuntu.sh (100%)
diff --git a/.travis.yml b/.travis.yml
index fde774e..5b07711 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -93,4 +93,4 @@ before_install:
script:
- INSTALL="${DISTRO%%:*}"
- INSTALL="${INSTALL%%/*}"
- - $CONTAINER run $CONTAINER_ARGS -t ima-evm-utils /bin/sh -c "cd travis && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && ARCH=\"$ARCH\" CC=\"$CC\" TSS=\"$TSS\" ./$INSTALL.sh && if [ ! \"$VARIANT\" ]; then which tpm_server || which swtpm || ../tests/install-swtpm.sh; fi && CC=\"$CC\" VARIANT=\"$VARIANT\" ../build.sh"
+ - $CONTAINER run $CONTAINER_ARGS -t ima-evm-utils /bin/sh -c "if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./ci/$INSTALL.$VARIANT.sh; fi && ARCH=\"$ARCH\" CC=\"$CC\" TSS=\"$TSS\" ./ci/$INSTALL.sh && if [ ! \"$VARIANT\" ]; then which tpm_server || which swtpm || ./tests/install-swtpm.sh; fi && CC=\"$CC\" VARIANT=\"$VARIANT\" ./build.sh"
diff --git a/travis/alpine.sh b/ci/alpine.sh
similarity index 100%
rename from travis/alpine.sh
rename to ci/alpine.sh
diff --git a/travis/centos.sh b/ci/centos.sh
similarity index 100%
rename from travis/centos.sh
rename to ci/centos.sh
diff --git a/travis/debian.cross-compile.sh b/ci/debian.cross-compile.sh
similarity index 100%
rename from travis/debian.cross-compile.sh
rename to ci/debian.cross-compile.sh
diff --git a/travis/debian.i386.sh b/ci/debian.i386.sh
similarity index 100%
rename from travis/debian.i386.sh
rename to ci/debian.i386.sh
diff --git a/travis/debian.sh b/ci/debian.sh
similarity index 100%
rename from travis/debian.sh
rename to ci/debian.sh
diff --git a/travis/fedora.sh b/ci/fedora.sh
similarity index 100%
rename from travis/fedora.sh
rename to ci/fedora.sh
diff --git a/travis/opensuse.sh b/ci/opensuse.sh
similarity index 100%
rename from travis/opensuse.sh
rename to ci/opensuse.sh
diff --git a/travis/tumbleweed.sh b/ci/tumbleweed.sh
similarity index 100%
rename from travis/tumbleweed.sh
rename to ci/tumbleweed.sh
diff --git a/travis/ubuntu.sh b/ci/ubuntu.sh
similarity index 100%
rename from travis/ubuntu.sh
rename to ci/ubuntu.sh
--
2.32.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] CI/openSUSE: Fix tpm_server symlink creation
2021-06-22 14:12 [PATCH 0/3] Add GitHub Actions support Petr Vorel
2021-06-22 14:12 ` [PATCH 1/3] CI: Rename travis script directory Petr Vorel
@ 2021-06-22 14:12 ` Petr Vorel
2021-06-22 14:12 ` [PATCH 3/3] CI: Introduce GitHub Actions setup Petr Vorel
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2021-06-22 14:12 UTC (permalink / raw)
To: linux-integrity; +Cc: Petr Vorel, Mimi Zohar
This symlink is missing only on openSUSE Tumbleweed,
it exists on openSUSE Leap, thus build failed.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
ci/tumbleweed.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ci/tumbleweed.sh b/ci/tumbleweed.sh
index ecd2372..dfc478b 100755
--- a/ci/tumbleweed.sh
+++ b/ci/tumbleweed.sh
@@ -42,6 +42,6 @@ zypper --non-interactive install --force-resolution --no-recommends \
which \
xsltproc
-if [ -f /usr/lib/ibmtss/tpm_server ]; then
+if [ -f /usr/lib/ibmtss/tpm_server -a ! -e /usr/local/bin/tpm_server ]; then
ln -s /usr/lib/ibmtss/tpm_server /usr/local/bin
fi
--
2.32.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] CI: Introduce GitHub Actions setup
2021-06-22 14:12 [PATCH 0/3] Add GitHub Actions support Petr Vorel
2021-06-22 14:12 ` [PATCH 1/3] CI: Rename travis script directory Petr Vorel
2021-06-22 14:12 ` [PATCH 2/3] CI/openSUSE: Fix tpm_server symlink creation Petr Vorel
@ 2021-06-22 14:12 ` Petr Vorel
2021-06-22 14:13 ` [PATCH 0/3] Add GitHub Actions support Petr Vorel
2021-06-24 19:19 ` Mimi Zohar
4 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2021-06-22 14:12 UTC (permalink / raw)
To: linux-integrity; +Cc: Petr Vorel, Mimi Zohar
Travis is unreliable due "pull rate limit" issue, workaround does not
work any more. Also GitHub Actions is a recommended way for projects
hosted on GitHub.
Nice bonus is that manual podman activation for distros using glibc >=
2.33 (e.g. openSUSE Tumbleweed, Fedora) it's not needed in GitHub.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
.github/workflows/ci.yml | 121 +++++++++++++++++++++++++++++++++++++++
1 file changed, 121 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 0000000..f08733a
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,121 @@
+# Copyright (c) 2021 Petr Vorel <pvorel@suse.cz>
+name: "distros"
+on: [push, pull_request]
+
+jobs:
+ job:
+ runs-on: ubuntu-latest
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ # 32bit build
+ - container: "debian:stable"
+ env:
+ CC: gcc
+ ARCH: i386
+ TSS: tpm2-tss
+ VARIANT: i386
+
+ # cross compilation builds
+ - container: "debian:stable"
+ env:
+ ARCH: ppc64el
+ CC: powerpc64le-linux-gnu-gcc
+ TSS: ibmtss
+ VARIANT: cross-compile
+
+ - container: "debian:stable"
+ env:
+ ARCH: arm64
+ CC: aarch64-linux-gnu-gcc
+ TSS: tpm2-tss
+ VARIANT: cross-compile
+
+ - container: "debian:stable"
+ env:
+ ARCH: s390x
+ CC: s390x-linux-gnu-gcc
+ TSS: ibmtss
+ VARIANT: cross-compile
+
+ # musl (native)
+ - container: "alpine:latest"
+ env:
+ CC: gcc
+ TSS: tpm2-tss
+
+ # glibc (gcc/clang)
+ - container: "opensuse/tumbleweed"
+ env:
+ CC: clang
+ TSS: ibmtss
+
+ - container: "opensuse/leap"
+ env:
+ CC: gcc
+ TSS: tpm2-tss
+
+ - container: "ubuntu:groovy"
+ env:
+ CC: gcc
+ TSS: ibmtss
+
+ - container: "ubuntu:xenial"
+ env:
+ CC: clang
+ TSS: tpm2-tss
+
+ - container: "fedora:latest"
+ env:
+ CC: clang
+ TSS: ibmtss
+
+ - container: "centos:7"
+ env:
+ CC: gcc
+ TSS: tpm2-tss
+
+ - container: "centos:latest"
+ env:
+ CC: gcc
+ TSS: tpm2-tss
+
+ - container: "debian:testing"
+ env:
+ CC: clang
+ TSS: tpm2-tss
+
+ - container: "debian:stable"
+ env:
+ CC: clang
+ TSS: ibmtss
+
+ container:
+ image: ${{ matrix.container }}
+ env: ${{ matrix.env }}
+
+ steps:
+ - name: Show OS
+ run: cat /etc/os-release
+
+ - name: Git checkout
+ uses: actions/checkout@v1
+
+ - name: Install additional packages
+ run: |
+ INSTALL=${{ matrix.container }}
+ INSTALL="${INSTALL%%:*}"
+ INSTALL="${INSTALL%%/*}"
+ if [ "$VARIANT" ]; then ARCH="$ARCH" ./ci/$INSTALL.$VARIANT.sh; fi
+ ARCH="$ARCH" CC="$CC" TSS="$TSS" ./ci/$INSTALL.sh
+
+ - name: Build swtpm
+ run: if [ ! "$VARIANT" ]; then which tpm_server || which swtpm || ./tests/install-swtpm.sh; fi
+
+ - name: Compiler version
+ run: $CC --version
+
+ - name: Compile
+ run: CC="$CC" VARIANT="$VARIANT" ./build.sh
--
2.32.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Add GitHub Actions support
2021-06-22 14:12 [PATCH 0/3] Add GitHub Actions support Petr Vorel
` (2 preceding siblings ...)
2021-06-22 14:12 ` [PATCH 3/3] CI: Introduce GitHub Actions setup Petr Vorel
@ 2021-06-22 14:13 ` Petr Vorel
2021-06-24 19:28 ` Mimi Zohar
2021-06-24 19:19 ` Mimi Zohar
4 siblings, 1 reply; 8+ messages in thread
From: Petr Vorel @ 2021-06-22 14:13 UTC (permalink / raw)
To: linux-integrity; +Cc: Mimi Zohar
Hi Mimi,
Tested: https://github.com/pevik/ima-evm-utils/actions/runs/960841012
Kind regards,
Petr
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Add GitHub Actions support
2021-06-22 14:12 [PATCH 0/3] Add GitHub Actions support Petr Vorel
` (3 preceding siblings ...)
2021-06-22 14:13 ` [PATCH 0/3] Add GitHub Actions support Petr Vorel
@ 2021-06-24 19:19 ` Mimi Zohar
2021-06-25 6:12 ` Petr Vorel
4 siblings, 1 reply; 8+ messages in thread
From: Mimi Zohar @ 2021-06-24 19:19 UTC (permalink / raw)
To: Petr Vorel, linux-integrity; +Cc: Mimi Zohar
On Tue, 2021-06-22 at 16:12 +0200, Petr Vorel wrote:
> Hi Mimi,
>
> Travis is unreliable due "pull rate limit" issue, workaround does not
> work any more. Also GitHub Actions is a recommended way for projects
> hosted on GitHub.
>
> Nice bonus is that manual podman activation for distros using glibc >=
> 2.33 (e.g. openSUSE Tumbleweed, Fedora) it's not needed in GitHub.
>
> Unlike LTP, where I removed Travis CI support, I kept it for
> ima-evm-utils, because you use it.
Thanks, Petr. I appreciate your not removing Travis CI.
I've pushed out the changes to next-testing.
Mimi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Add GitHub Actions support
2021-06-22 14:13 ` [PATCH 0/3] Add GitHub Actions support Petr Vorel
@ 2021-06-24 19:28 ` Mimi Zohar
0 siblings, 0 replies; 8+ messages in thread
From: Mimi Zohar @ 2021-06-24 19:28 UTC (permalink / raw)
To: Petr Vorel, linux-integrity; +Cc: Mimi Zohar
On Tue, 2021-06-22 at 16:13 +0200, Petr Vorel wrote:
> Hi Mimi,
>
> Tested: https://github.com/pevik/ima-evm-utils/actions/runs/960841012
Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Add GitHub Actions support
2021-06-24 19:19 ` Mimi Zohar
@ 2021-06-25 6:12 ` Petr Vorel
0 siblings, 0 replies; 8+ messages in thread
From: Petr Vorel @ 2021-06-25 6:12 UTC (permalink / raw)
To: Mimi Zohar; +Cc: linux-integrity, Mimi Zohar
> On Tue, 2021-06-22 at 16:12 +0200, Petr Vorel wrote:
> > Hi Mimi,
> > Travis is unreliable due "pull rate limit" issue, workaround does not
> > work any more. Also GitHub Actions is a recommended way for projects
> > hosted on GitHub.
> > Nice bonus is that manual podman activation for distros using glibc >=
> > 2.33 (e.g. openSUSE Tumbleweed, Fedora) it's not needed in GitHub.
> > Unlike LTP, where I removed Travis CI support, I kept it for
> > ima-evm-utils, because you use it.
> Thanks, Petr. I appreciate your not removing Travis CI.
> I've pushed out the changes to next-testing.
Thanks!
Kind regards,
Petr
> Mimi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-06-25 6:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22 14:12 [PATCH 0/3] Add GitHub Actions support Petr Vorel
2021-06-22 14:12 ` [PATCH 1/3] CI: Rename travis script directory Petr Vorel
2021-06-22 14:12 ` [PATCH 2/3] CI/openSUSE: Fix tpm_server symlink creation Petr Vorel
2021-06-22 14:12 ` [PATCH 3/3] CI: Introduce GitHub Actions setup Petr Vorel
2021-06-22 14:13 ` [PATCH 0/3] Add GitHub Actions support Petr Vorel
2021-06-24 19:28 ` Mimi Zohar
2021-06-24 19:19 ` Mimi Zohar
2021-06-25 6:12 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).