From 4fbd493c24e6843d7a318a315b1ce0d32d17def7 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Sun, 1 Sep 2024 21:49:22 +0000 Subject: [PATCH 1/5] gentoo ci --- .github/workflows/build-and-run.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 591d8cbf..760e72ba 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -251,15 +251,19 @@ jobs: Build-in-Container-Gentoo: runs-on: ubuntu-24.04 - container: - image: gentoo/stage3 steps: + - name: Prepare Gentoo Docker image + run: | + docker create -v /var/db/repos/gentoo --name myportagesnapshot gentoo/portage:latest /bin/true + docker start --name gentoo --volumes-from myportagesnapshot gentoo/stage3:latest - name: Prepare gentoo - run: getuto && emerge --sync + run: docker exec gentoo getuto - name: Install build tools run: | - emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin) - emerge -g dev-vcs/git dev-libs/libpcre dev-build/cmake dev-lang/lua:5.1 + docker exec gentoo sh -c 'emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin)' + docker exec gentoo emerge -g dev-vcs/git dev-libs/libpcre dev-build/cmake dev-lang/lua:5.1 + - name: stop + run: echo 1 - name: Check out repository code uses: actions/checkout@v4 with: From 6ecedc71d16fc6c45e6e1f6a59a5328e6016fafd Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Sun, 1 Sep 2024 21:56:04 +0000 Subject: [PATCH 2/5] gentoo ci --- .github/workflows/build-and-run.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 760e72ba..01431c86 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -254,10 +254,9 @@ jobs: steps: - name: Prepare Gentoo Docker image run: | - docker create -v /var/db/repos/gentoo --name myportagesnapshot gentoo/portage:latest /bin/true - docker start --name gentoo --volumes-from myportagesnapshot gentoo/stage3:latest - - name: Prepare gentoo - run: docker exec gentoo getuto + docker create -v /var/db/repos/gentoo --name portagesnapshot gentoo/portage:latest /bin/true + docker run -d --name gentoo --volumes-from portagesnapshot gentoo/stage3:latest + docker exec gentoo getuto - name: Install build tools run: | docker exec gentoo sh -c 'emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin)' From eb6dc4d1136582031c9299676270759fe1ac9551 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Sun, 1 Sep 2024 22:06:01 +0000 Subject: [PATCH 3/5] fix --- .github/workflows/build-and-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 01431c86..9ff4bccb 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -255,7 +255,7 @@ jobs: - name: Prepare Gentoo Docker image run: | docker create -v /var/db/repos/gentoo --name portagesnapshot gentoo/portage:latest /bin/true - docker run -d --name gentoo --volumes-from portagesnapshot gentoo/stage3:latest + docker run -di --name gentoo --volumes-from portagesnapshot gentoo/stage3:latest /bin/bash docker exec gentoo getuto - name: Install build tools run: | From ae871659d48ce95a0f3c06aef315b3fbcf13aaec Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Sun, 1 Sep 2024 22:12:03 +0000 Subject: [PATCH 4/5] fix --- .github/workflows/build-and-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 9ff4bccb..147073a2 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -259,8 +259,8 @@ jobs: docker exec gentoo getuto - name: Install build tools run: | - docker exec gentoo sh -c 'emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin)' docker exec gentoo emerge -g dev-vcs/git dev-libs/libpcre dev-build/cmake dev-lang/lua:5.1 + docker exec gentoo sh -c 'emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin)' - name: stop run: echo 1 - name: Check out repository code From 22cd1eb695310257a9d29f7aaa36eb7ef8dab115 Mon Sep 17 00:00:00 2001 From: "Sergey V. Lobanov" Date: Sun, 1 Sep 2024 22:15:28 +0000 Subject: [PATCH 5/5] fix --- .github/workflows/build-and-run.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-run.yml b/.github/workflows/build-and-run.yml index 147073a2..c712534c 100644 --- a/.github/workflows/build-and-run.yml +++ b/.github/workflows/build-and-run.yml @@ -259,7 +259,10 @@ jobs: docker exec gentoo getuto - name: Install build tools run: | - docker exec gentoo emerge -g dev-vcs/git dev-libs/libpcre dev-build/cmake dev-lang/lua:5.1 + docker exec gentoo emerge -g dev-vcs/git + docker exec gentoo emerge -g dev-libs/libpcre + docker exec gentoo emerge -g dev-build/cmake + docker exec gentoo emerge -g dev-lang/lua:5.1 docker exec gentoo sh -c 'emerge -g --autounmask-write sys-kernel/gentoo-kernel-bin || (etc-update --verbose --automode -5 && emerge -g sys-kernel/gentoo-kernel-bin)' - name: stop run: echo 1