[HACK] Pruned pkgcheck
action
#449
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pkgcheck | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install pkgcheck | |
run: | | |
pip install --upgrade pip | |
pip install pkgcore==0.12.17 | |
pip install pkgcheck>=0.10.3 | |
- name: Fetch gentoo repo | |
run: | | |
pmaint --verbose sync gentoo | |
- name: Prune packages from ::gentoo that exist in ::haskell | |
run: | | |
for p in $( cd /home/runner/work/gentoo-haskell/gentoo-haskell; ls -d *-*/*/ ) | |
do | |
echo $p | |
rm -rfv /home/runner/.cache/pkgcore/repos/gentoo/$p | |
done | |
- name: Run pkgcheck | |
uses: hololeap/pkgcheck-action/check@split-actions-2 |