Skip to content

Commit

Permalink
adjust github workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Boet <[email protected]>
  • Loading branch information
nabbi committed Sep 16, 2024
1 parent 3f7537a commit 60132ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pkgcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

# Python 3.10 breaks pkhcheck, point at my fork which uses 3.9 vs 3.x
- name: Run pkgcheck
Expand Down
94 changes: 13 additions & 81 deletions .github/workflows/repoman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,93 +27,25 @@ jobs:
# Feel free to double up more of these if needed, or uncomment
# architectures.
profile:
# - default/linux/alpha/17.0
# - default/linux/alpha/17.0/desktop
# - default/linux/alpha/17.0/desktop/gnome
# - default/linux/alpha/17.0/desktop/gnome/systemd
# - default/linux/alpha/17.0/developer
- default/linux/amd64/17.1 default/linux/amd64/17.1/selinux
- default/linux/amd64/17.1/hardened default/linux/amd64/17.1/hardened/selinux
- default/linux/amd64/17.1/desktop
# - default/linux/amd64/17.1/desktop/gnome
# - default/linux/amd64/17.1/desktop/gnome/systemd
# - default/linux/amd64/17.1/desktop/plasma
# - default/linux/amd64/17.1/desktop/plasma/systemd
# - default/linux/amd64/17.1/developer
# - default/linux/amd64/17.1/no-multilib
# - default/linux/amd64/17.1/no-multilib/hardened
# - default/linux/amd64/17.1/no-multilib/hardened/selinux
# - default/linux/amd64/17.1/systemd
# - default/linux/arm/17.0
# - default/linux/arm64/17.0
# - default/linux/arm64/17.0/desktop
# - default/linux/arm64/17.0/desktop/gnome
# - default/linux/arm64/17.0/desktop/gnome/systemd
# - default/linux/arm64/17.0/desktop/plasma
# - default/linux/arm64/17.0/desktop/plasma/systemd
# - default/linux/arm64/17.0/desktop/systemd
# - default/linux/arm64/17.0/developer
# - default/linux/arm64/17.0/systemd
# - default/linux/hppa/17.0
# - default/linux/hppa/17.0/desktop
# - default/linux/hppa/17.0/developer
# - default/linux/ia64/17.0
# - default/linux/ia64/17.0/desktop
# - default/linux/ia64/17.0/desktop/gnome
# - default/linux/ia64/17.0/desktop/gnome/systemd
# - default/linux/ia64/17.0/developer
# - default/linux/powerpc/ppc32/17.0
# - default/linux/powerpc/ppc32/17.0/desktop
# - default/linux/powerpc/ppc32/17.0/desktop/gnome
# - default/linux/powerpc/ppc32/17.0/desktop/gnome/systemd
# - default/linux/powerpc/ppc32/17.0/developer
# - default/linux/powerpc/ppc64/17.0/32bit-userland
# - default/linux/powerpc/ppc64/17.0/32bit-userland/desktop
# - default/linux/powerpc/ppc64/17.0/32bit-userland/desktop/gnome
# - default/linux/powerpc/ppc64/17.0/32bit-userland/desktop/gnome/systemd
# - default/linux/powerpc/ppc64/17.0/32bit-userland/developer
# - default/linux/powerpc/ppc64/17.0/64bit-userland
# - default/linux/powerpc/ppc64/17.0/64bit-userland/desktop
# - default/linux/powerpc/ppc64/17.0/64bit-userland/desktop/gnome
# - default/linux/powerpc/ppc64/17.0/64bit-userland/desktop/gnome/systemd
# - default/linux/powerpc/ppc64/17.0/64bit-userland/developer
# - default/linux/powerpc/ppc64/17.0/64bit-userland/little-endian
# - default/linux/powerpc/ppc64/17.0/64bit-userland/little-endian/systemd
# - default/linux/ppc64le/17.0
# - default/linux/ppc64le/17.0/desktop
# - default/linux/ppc64le/17.0/systemd
# - default/linux/ppc64le/17.0/developer
# - default/linux/riscv/17.0/rv64gc/lp64d
# - default/linux/riscv/17.0/rv64gc/lp64d/systemd
# - default/linux/riscv/17.0/rv64gc/lp64
# - default/linux/riscv/17.0/rv64gc/lp64/systemd
# - default/linux/sparc/17.0
# - default/linux/sparc/17.0/desktop
# - default/linux/sparc/17.0/developer
# - default/linux/sparc/17.0/systemd
# - default/linux/sparc/17.0/64ul
# - default/linux/sparc/17.0/64ul/desktop
# - default/linux/sparc/17.0/64ul/developer
# - default/linux/sparc/17.0/64ul/systemd
# - default/linux/x86/17.0
# - default/linux/x86/17.0/selinux default/linux/x86/17.0/hardened
# - default/linux/x86/17.0/hardened/selinux default/linux/x86/17.0/desktop
# - default/linux/x86/17.0/desktop/gnome default/linux/x86/17.0/desktop/gnome/systemd
# - default/linux/x86/17.0/desktop/plasma default/linux/x86/17.0/desktop/plasma/systemd
# - default/linux/x86/17.0/developer default/linux/x86/17.0/systemd
# - default/linux/amd64/17.1 default/linux/amd64/17.1/selinux
# - default/linux/amd64/17.1/hardened default/linux/amd64/17.1/hardened/selinux
# - default/linux/amd64/17.1/desktop
- default/linux/amd64/23.0/split-usr
- default/linux/amd64/23.0/split-usr/desktop
- default/linux/amd64/23.0/split-usr/hardened default/linux/amd64/23.0/split-usr/hardened/selinux
env:
PROFILE: ${{ matrix.profile }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
- name: Setup repoman
run: |
python -m pip install --upgrade pip
pip install lxml pyyaml
wget -qO - "https://github.com/gentoo/portage/archive/portage-3.0.23.tar.gz" | tar xz
wget -qO - "https://github.com/gentoo/portage/archive/portage-3.0.30.tar.gz" | tar xz
sudo groupadd -g 250 portage
sudo useradd -g portage -d /var/tmp/portage -s /bin/false -u 250 portage
- name: Setup master gentoo repository
Expand All @@ -122,7 +54,7 @@ jobs:
wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | sudo tar xz -C /var/db/repos/gentoo --strip-components=1
sudo wget "https://www.gentoo.org/dtd/metadata.dtd" -O /var/cache/distfiles/metadata.dtd
sudo wget "https://gitweb.gentoo.org/proj/portage.git/plain/cnf/repos.conf" -O /etc/portage/repos.conf
sudo ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/17.0 /etc/portage/make.profile
sudo ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/23.0 /etc/portage/make.profile
- name: Test with repoman
run: |
python3 portage-portage-3.0.23/repoman/bin/repoman full -dx --jobs=$(nproc) --include-profiles="${PROFILE}"
python3 portage-portage-3.0.30/repoman/bin/repoman full -dx --jobs=$(nproc) --include-profiles="${PROFILE}"

0 comments on commit 60132ce

Please sign in to comment.