-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (31 loc) · 1.01 KB
/
emerge-min.yml
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
30
31
32
33
34
35
36
37
name: emerge ha-min
on:
workflow_dispatch:
schedule:
- cron: '15 8 * * *' # Daily
jobs:
emerge-ha-min:
runs-on: ubuntu-latest
container:
image: ghcr.io/antonfischl1980/gentoo-ci:main
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: emerge-sync
run: |
sudo -u portage git -C /var/db/repos/gentoo pull
emerge --sync
- name: repos.conf/HomeAssistantRepository
run: |
mkdir -p /etc/portage/repos.conf/
echo -en "[HomeAssistantRepository]\nlocation = " >/etc/portage/repos.conf/HomeAssistantRepository.conf
pwd -P >> /etc/portage/repos.conf/HomeAssistantRepository.conf
cat /etc/portage/repos.conf/*.conf
- name: /etc/portage/
run: |
rsync -aHDPSv etc/portage/ /etc/portage/
- name: emerge
run: |
emerge --autounmask=y --autounmask-continue=y dev-lang/rust-bin
emerge --jobs=4 --autounmask=y --autounmask-continue=y app-misc/homeassistant-min