-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (25 loc) · 904 Bytes
/
Copy pathpkgcraft.yml
File metadata and controls
29 lines (25 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: pkgcruft
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# currently the pkgcruft-action doesn't natively handle repo syncing
# see https://github.com/pkgcraft/pkgcruft-action/issues/2
- name: Checkout Gentoo repo and mangle /etc/portage/repos.conf
shell: bash
run: |
mkdir -p "${HOME}/.cache/pkgcruft/repos/gentoo"
curl -L https://github.com/gentoo-mirror/gentoo/archive/stable.tar.gz | tar -zxf - --strip-components=1 -C "${HOME}/.cache/pkgcruft/repos/gentoo"
dir=$(mktemp -d)
cat <<- EOF > "${dir}/repos.conf"
[DEFAULT]
main-repo = gentoo
[gentoo]
location = "${HOME}/.cache/pkgcruft/repos/gentoo"
EOF
sudo mv "${dir}" /etc/portage
- name: Run pkgcruft
uses: pkgcraft/pkgcruft-action@main