mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
.github/workflows/repoman.yml: Use script to auto run the latest rm
By using a seperate script instead of running everything in the yml file, we gain the ability to use and manipulate variables. This means that we can now automatically run the latest version of repoman, which should make this more hands-off by removing the need to update this every now and then. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
4
.github/workflows/pkgcheck.yml
vendored
4
.github/workflows/pkgcheck.yml
vendored
@@ -10,9 +10,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run pkgcheck
|
||||
uses: pkgcore/pkgcheck-action@v1
|
||||
with:
|
||||
|
||||
15
.github/workflows/repoman.yml
vendored
15
.github/workflows/repoman.yml
vendored
@@ -11,17 +11,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- 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.12.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
|
||||
run: |
|
||||
sudo mkdir -p /var/db/repos/gentoo /etc/portage /var/cache/distfiles
|
||||
@@ -29,6 +18,6 @@ jobs:
|
||||
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.1 /etc/portage/make.profile
|
||||
- name: Test with repoman
|
||||
- name: Setup and run Repoman
|
||||
run: |
|
||||
python3 portage-portage-3.0.12/repoman/bin/repoman full -dx
|
||||
./scripts/setup-and-run-repoman.sh
|
||||
|
||||
Reference in New Issue
Block a user