Compare commits

...

5 Commits

6 changed files with 13 additions and 9 deletions

View File

@ -23,7 +23,7 @@ pipeline:
- su builder
# Due to a bug with the V compiler, we can't just use the PKGBUILD from
# inside the repo
- curl -OL https://git.rustybever.be/Chewing_Bever/vieter/raw/branch/dev/PKGBUILD
- curl -OL https://git.rustybever.be/vieter/vieter/raw/branch/dev/PKGBUILD
- makepkg -s --noconfirm --needed
when:
event: push

View File

@ -12,7 +12,7 @@ pipeline:
commands:
- make
when:
event: [push, pull_request]
event: [pull_request]
branch:
exclude: [main]

View File

@ -10,4 +10,4 @@ pipeline:
commands:
- make lint
when:
event: [ push, pull_request ]
event: [ pull_request ]

View File

@ -14,4 +14,4 @@ pipeline:
commands:
- make test
when:
event: [push, pull_request]
event: [pull_request]

View File

@ -4,12 +4,12 @@ pkgbase='vieter'
pkgname='vieter'
pkgver=0.2.0.r25.g20112b8
pkgrel=1
depends=('glibc' 'openssl' 'libarchive' 'gc')
depends=('glibc' 'openssl' 'libarchive' 'gc' 'sqlite')
makedepends=('git' 'gcc' 'vieter-v')
arch=('x86_64' 'aarch64' 'armv7')
url='https://git.rustybever.be/Chewing_Bever/vieter'
arch=('x86_64' 'aarch64')
url='https://git.rustybever.be/vieter/vieter'
license=('AGPL3')
source=($pkgname::git+https://git.rustybever.be/Chewing_Bever/vieter#branch=dev)
source=($pkgname::git+https://git.rustybever.be/vieter/vieter#branch=dev)
md5sums=('SKIP')
pkgver() {

View File

@ -9,6 +9,7 @@ import math
import build
import docker
import db
import os
const (
// How many seconds to wait before retrying to update API if failed
@ -19,7 +20,6 @@ const (
struct ScheduledBuild {
pub:
repo_id string
repo db.GitRepo
timestamp time.Time
}
@ -187,6 +187,10 @@ fn (mut d Daemon) renew_repos() {
return
}
// Filter out any repos that shouldn't run on this architecture
cur_arch := os.uname().machine
new_repos = new_repos.filter(it.arch.any(it.value == cur_arch))
d.repos = new_repos
d.api_update_timestamp = time.now().add_seconds(60 * d.api_update_frequency)