From 70df0a1694b8d98a2178f964fca322a516653d7c Mon Sep 17 00:00:00 2001 From: tsunamaru Date: Mon, 11 Oct 2021 12:39:37 +0300 Subject: [PATCH] Gentoo CI: initial implementation This commit implements CI based on official Gentoo docker distribution. Currently, it builds against following targets using GCC: - glibc - musl - hardened-glibc - hardened-musl - nomultilib-glibc - hardened-nomultilib-glibc --- .github/workflows/ci-gentoo.yaml | 101 +++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .github/workflows/ci-gentoo.yaml diff --git a/.github/workflows/ci-gentoo.yaml b/.github/workflows/ci-gentoo.yaml new file mode 100644 index 000000000..39b43b32c --- /dev/null +++ b/.github/workflows/ci-gentoo.yaml @@ -0,0 +1,101 @@ +name: ci_gentoo + +on: [push, pull_request] + +jobs: + + glibc: + runs-on: ubuntu-latest + container: gentoo/stage3:latest + steps: + - name: Sync portage tree + run: emerge-webrsync + - name: Install git + run: emerge -v dev-vcs/git + - name: Allow portage build latest master + run: echo 'sys-apps/openrc **' > /etc/portage/package.accept_keywords + - name: Build + run: emerge -v sys-apps/openrc + env: + EGIT_OVERRIDE_REPO_OPENRC_OPENRC: ${{ github.server_url }}/${{ github.repository }}.git + EGIT_OVERRIDE_BRANCH_OPENRC_OPENRC: ${{ github.head_ref }} + + musl: + runs-on: ubuntu-latest + container: gentoo/stage3:musl + steps: + - name: Sync portage tree + run: emerge-webrsync + - name: Install git + run: emerge -v dev-vcs/git + - name: Allow portage build latest master + run: echo 'sys-apps/openrc **' > /etc/portage/package.accept_keywords + - name: Build + run: emerge -v sys-apps/openrc + env: + EGIT_OVERRIDE_REPO_OPENRC_OPENRC: ${{ github.server_url }}/${{ github.repository }}.git + EGIT_OVERRIDE_BRANCH_OPENRC_OPENRC: ${{ github.head_ref }} + + hardened-glibc: + runs-on: ubuntu-latest + container: gentoo/stage3:hardened + steps: + - name: Sync portage tree + run: emerge-webrsync + - name: Install git + run: emerge -v dev-vcs/git + - name: Allow portage build latest master + run: echo 'sys-apps/openrc **' > /etc/portage/package.accept_keywords + - name: Build + run: emerge -v sys-apps/openrc + env: + EGIT_OVERRIDE_REPO_OPENRC_OPENRC: ${{ github.server_url }}/${{ github.repository }}.git + EGIT_OVERRIDE_BRANCH_OPENRC_OPENRC: ${{ github.head_ref }} + + hardened-musl: + runs-on: ubuntu-latest + container: gentoo/stage3:musl-hardened + steps: + - name: Sync portage tree + run: emerge-webrsync + - name: Install git + run: emerge -v dev-vcs/git + - name: Allow portage build latest master + run: echo 'sys-apps/openrc **' > /etc/portage/package.accept_keywords + - name: Build + run: emerge -v sys-apps/openrc + env: + EGIT_OVERRIDE_REPO_OPENRC_OPENRC: ${{ github.server_url }}/${{ github.repository }}.git + EGIT_OVERRIDE_BRANCH_OPENRC_OPENRC: ${{ github.head_ref }} + + nomultilib-glibc: + runs-on: ubuntu-latest + container: gentoo/stage3:nomultilib + steps: + - name: Sync portage tree + run: emerge-webrsync + - name: Install git + run: emerge -v dev-vcs/git + - name: Allow portage build latest master + run: echo 'sys-apps/openrc **' > /etc/portage/package.accept_keywords + - name: Build + run: emerge -v sys-apps/openrc + env: + EGIT_OVERRIDE_REPO_OPENRC_OPENRC: ${{ github.server_url }}/${{ github.repository }}.git + EGIT_OVERRIDE_BRANCH_OPENRC_OPENRC: ${{ github.head_ref }} + + hardened-nomultilib-glibc: + runs-on: ubuntu-latest + container: gentoo/stage3:hardened-nomultilib + steps: + - name: Sync portage tree + run: emerge-webrsync + - name: Install git + run: emerge -v dev-vcs/git + - name: Allow portage build latest master + run: echo 'sys-apps/openrc **' > /etc/portage/package.accept_keywords + - name: Build + run: emerge -v sys-apps/openrc + env: + EGIT_OVERRIDE_REPO_OPENRC_OPENRC: ${{ github.server_url }}/${{ github.repository }}.git + EGIT_OVERRIDE_BRANCH_OPENRC_OPENRC: ${{ github.head_ref }}