1 |
commit: 3c139a4be8a4a3a01a35f8d3690d976cdff579dc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 21 05:49:25 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 05:49:25 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3c139a4b |
7 |
|
8 |
.github: Add repoman Github Action |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.github/workflows/repoman.yml | 34 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 34 insertions(+) |
14 |
|
15 |
diff --git a/.github/workflows/repoman.yml b/.github/workflows/repoman.yml |
16 |
new file mode 100644 |
17 |
index 0000000000..e44ed6d3b5 |
18 |
--- /dev/null |
19 |
+++ b/.github/workflows/repoman.yml |
20 |
@@ -0,0 +1,34 @@ |
21 |
+name: repoman |
22 |
+ |
23 |
+on: |
24 |
+ push: |
25 |
+ branches: [ master ] |
26 |
+ pull_request: |
27 |
+ branches: [ master ] |
28 |
+ |
29 |
+jobs: |
30 |
+ build: |
31 |
+ runs-on: ubuntu-latest |
32 |
+ steps: |
33 |
+ - uses: actions/checkout@v2 |
34 |
+ - name: Set up Python 3.9 |
35 |
+ uses: actions/setup-python@v2 |
36 |
+ with: |
37 |
+ python-version: 3.9 |
38 |
+ - name: Setup repoman |
39 |
+ run: | |
40 |
+ python -m pip install --upgrade pip |
41 |
+ pip install lxml pyyaml |
42 |
+ wget -qO - "https://github.com/gentoo/portage/archive/portage-3.0.20.tar.gz" | tar xz |
43 |
+ sudo groupadd -g 250 portage |
44 |
+ sudo useradd -g portage -d /var/tmp/portage -s /bin/false -u 250 portage |
45 |
+ - name: Setup master gentoo repository |
46 |
+ run: | |
47 |
+ sudo mkdir -p /var/db/repos/gentoo /etc/portage /var/cache/distfiles |
48 |
+ wget -qO - "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz" | sudo tar xz -C /var/db/repos/gentoo --strip-components=1 |
49 |
+ sudo wget "https://www.gentoo.org/dtd/metadata.dtd" -O /var/cache/distfiles/metadata.dtd |
50 |
+ sudo wget "https://gitweb.gentoo.org/proj/portage.git/plain/cnf/repos.conf" -O /etc/portage/repos.conf |
51 |
+ sudo ln -s /var/db/repos/gentoo/profiles/default/linux/amd64/17.1 /etc/portage/make.profile |
52 |
+ - name: Test with repoman |
53 |
+ run: | |
54 |
+ python3 portage-*/repoman/bin/repoman full -dx |