aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-12 18:43:36 +0000
committerSam James <sam@gentoo.org>2021-03-12 18:43:36 +0000
commit70f43f014c838897b0e9e25048337e1a62815ca6 (patch)
tree7dc666f2eafa392ae9ef9e0be40b0ad19dc34ede /.github
parentdev-util: drop unsupported dev-util/cmocka (diff)
downloadmusl-70f43f014c838897b0e9e25048337e1a62815ca6.tar.gz
musl-70f43f014c838897b0e9e25048337e1a62815ca6.tar.bz2
musl-70f43f014c838897b0e9e25048337e1a62815ca6.zip
*: Add GitHub Actions for pkgcheck, repoman
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml17
-rw-r--r--.github/workflows/repoman.yml34
2 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..735537a0
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,17 @@
+name: pkgcheck
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Run pkgcheck
+ uses: pkgcore/pkgcheck-action@v1
diff --git a/.github/workflows/repoman.yml b/.github/workflows/repoman.yml
new file mode 100644
index 00000000..f7a30dbc
--- /dev/null
+++ b/.github/workflows/repoman.yml
@@ -0,0 +1,34 @@
+name: repoman
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ 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.16.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
+ 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.1 /etc/portage/make.profile
+ - name: Test with repoman
+ run: |
+ python3 portage-*/repoman/bin/repoman full -dx