Compare commits

..

5 Commits

Author SHA1 Message Date
c27f1e20f1
losbuild: source ~/.profile in each step
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-26 20:54:41 +02:00
7abc15f2d1
losprep: ignore errors for the sync task 2021-07-26 20:54:06 +02:00
ce201615ef
libvirt: use tf-pool for storage
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-14 16:57:23 +02:00
5af4d799fb
sysctl: limit swappiness (use RAM ftw)
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-14 16:12:30 +02:00
bcd0046242
define a configuration for when lower on resources 2021-07-14 16:11:32 +02:00
4 changed files with 9 additions and 8 deletions

@ -1,6 +1,7 @@
--- ---
- name: prepare device-specific code - name: prepare device-specific code
shell: | shell: |
. ~/.profile
cd ~/android/lineage cd ~/android/lineage
. build/envsetup.sh . build/envsetup.sh
breakfast {{losdevice}} breakfast {{losdevice}}
@ -9,6 +10,7 @@
- name: build - name: build
shell: | shell: |
. ~/.profile
cd ~/android/lineage cd ~/android/lineage
. build/envsetup.sh . build/envsetup.sh
croot && croot &&

@ -38,7 +38,7 @@
- name: set up ccache - name: set up ccache
shell: | shell: |
ccache -M 50G ccache -M 10G
ccache -o compression=true ccache -o compression=true
args: args:
executable: /usr/bin/bash executable: /usr/bin/bash
@ -58,6 +58,7 @@
repo sync --force-sync repo sync --force-sync
args: args:
executable: /usr/bin/bash executable: /usr/bin/bash
ignore_errors: yes
- name: clone the blobs repo - name: clone the blobs repo
git: git:

@ -6,11 +6,9 @@ bootcmd:
- uname -r - uname -r
- timedatectl set-ntp 1 - timedatectl set-ntp 1
- timedatectl set-timezone Europe/Bratislava - timedatectl set-timezone Europe/Bratislava
- systemctl disable --now systemd-resolved - systemctl stop systemd-resolved
- unlink /etc/resolv.conf || true
- echo "nameserver 84.200.69.80" > /etc/resolv.conf - echo "nameserver 84.200.69.80" > /etc/resolv.conf
- systemctl disable --now snapd - echo "vm.swappiness=3" >> /etc/sysctl.conf
- systemctl disable --now snapd.socket
- sleep 10 - sleep 10
runcmd: runcmd:

@ -23,9 +23,9 @@ mode = ["bridge"]
hosts = { hosts = {
"builder" = { "builder" = {
name = "builder", name = "builder",
vcpu = 4, vcpu = 2,
memory = 1024 * 12, memory = 1024 * 10,
diskpool = "default", diskpool = "tf-pool",
disksize = 1024 * 1024 * 1024 * 150, disksize = 1024 * 1024 * 1024 * 150,
mac = "02:26:00:13:37:00", mac = "02:26:00:13:37:00",
# sourceimage = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img", # sourceimage = "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img",