forked from vieter-v/vieter
Compare commits
No commits in common. "a3b66801535166cb9bc7b5ee6173a0ba8c121e08" and "1a076a7a8cc11d68fba1af403da6540d1e4edcae" have entirely different histories.
a3b6680153
...
1a076a7a8c
|
|
@ -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/vieter/vieter/raw/branch/dev/PKGBUILD
|
- curl -OL https://git.rustybever.be/Chewing_Bever/vieter/raw/branch/dev/PKGBUILD
|
||||||
- makepkg -s --noconfirm --needed
|
- makepkg -s --noconfirm --needed
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- make
|
- make
|
||||||
when:
|
when:
|
||||||
event: [pull_request]
|
event: [push, pull_request]
|
||||||
branch:
|
branch:
|
||||||
exclude: [main]
|
exclude: [main]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,4 +10,4 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- make lint
|
- make lint
|
||||||
when:
|
when:
|
||||||
event: [ pull_request ]
|
event: [ push, pull_request ]
|
||||||
|
|
|
||||||
|
|
@ -14,4 +14,4 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
when:
|
when:
|
||||||
event: [pull_request]
|
event: [push, pull_request]
|
||||||
|
|
|
||||||
8
PKGBUILD
8
PKGBUILD
|
|
@ -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' 'sqlite')
|
depends=('glibc' 'openssl' 'libarchive' 'gc')
|
||||||
makedepends=('git' 'gcc' 'vieter-v')
|
makedepends=('git' 'gcc' 'vieter-v')
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64' 'armv7')
|
||||||
url='https://git.rustybever.be/vieter/vieter'
|
url='https://git.rustybever.be/Chewing_Bever/vieter'
|
||||||
license=('AGPL3')
|
license=('AGPL3')
|
||||||
source=($pkgname::git+https://git.rustybever.be/vieter/vieter#branch=dev)
|
source=($pkgname::git+https://git.rustybever.be/Chewing_Bever/vieter#branch=dev)
|
||||||
md5sums=('SKIP')
|
md5sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@ 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
|
||||||
|
|
@ -20,6 +19,7 @@ const (
|
||||||
|
|
||||||
struct ScheduledBuild {
|
struct ScheduledBuild {
|
||||||
pub:
|
pub:
|
||||||
|
repo_id string
|
||||||
repo db.GitRepo
|
repo db.GitRepo
|
||||||
timestamp time.Time
|
timestamp time.Time
|
||||||
}
|
}
|
||||||
|
|
@ -187,10 +187,6 @@ 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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue