Compare commits

...

5 Commits

6 changed files with 13 additions and 9 deletions

View File

@ -23,7 +23,7 @@ pipeline:
- su builder - su builder
# Due to a bug with the V compiler, we can't just use the PKGBUILD from # Due to a bug with the V compiler, we can't just use the PKGBUILD from
# inside the repo # 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 - makepkg -s --noconfirm --needed
when: when:
event: push event: push

View File

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

View File

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

View File

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

View File

@ -4,12 +4,12 @@ pkgbase='vieter'
pkgname='vieter' pkgname='vieter'
pkgver=0.2.0.r25.g20112b8 pkgver=0.2.0.r25.g20112b8
pkgrel=1 pkgrel=1
depends=('glibc' 'openssl' 'libarchive' 'gc') depends=('glibc' 'openssl' 'libarchive' 'gc' 'sqlite')
makedepends=('git' 'gcc' 'vieter-v') makedepends=('git' 'gcc' 'vieter-v')
arch=('x86_64' 'aarch64' 'armv7') arch=('x86_64' 'aarch64')
url='https://git.rustybever.be/Chewing_Bever/vieter' url='https://git.rustybever.be/vieter/vieter'
license=('AGPL3') 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') md5sums=('SKIP')
pkgver() { pkgver() {

View File

@ -9,6 +9,7 @@ import math
import build import build
import docker import docker
import db import db
import os
const ( const (
// How many seconds to wait before retrying to update API if failed // How many seconds to wait before retrying to update API if failed
@ -19,7 +20,6 @@ const (
struct ScheduledBuild { struct ScheduledBuild {
pub: pub:
repo_id string
repo db.GitRepo repo db.GitRepo
timestamp time.Time timestamp time.Time
} }
@ -187,6 +187,10 @@ fn (mut d Daemon) renew_repos() {
return 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.repos = new_repos
d.api_update_timestamp = time.now().add_seconds(60 * d.api_update_frequency) d.api_update_timestamp = time.now().add_seconds(60 * d.api_update_frequency)