-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (69 loc) · 2.07 KB
/
ci.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *"
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
container:
image: almalinux:8
volumes:
- ${{ github.workspace }}:${{ github.workspace }}
steps:
- name: Setup tools
run: |
dnf install -yq jq git tar gzip make curl
LATEST="$(curl -SsL https://api.github.com/repos/sibprogrammer/xq/releases/latest | jq -r '.tag_name')"
curl -sSL -o xq.tar.gz https://github.com/sibprogrammer/xq/releases/latest/download/xq_${LATEST//v/}_linux_amd64.tar.gz
tar -xzf xq.tar.gz
mv xq /usr/local/bin/xq
- name: Get Latest Vespa version
id: vespa-metadata
run: |
VESPA_VERSION=$(curl -sSL https://repo1.maven.org/maven2/com/yahoo/vespa/parent/maven-metadata.xml | \
xq -x '/metadata/versioning/latest')
echo "Using version: $VESPA_VERSION"
echo "version=$VESPA_VERSION" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
with:
set-safe-directory: "true"
- name: build-rpm
env:
VESPA_VERSION: ${{ steps.vespa-metadata.outputs.version }}
run: |
git config --global --add safe.directory "${{ github.workspace }}"
git tag -d "v$VESPA_VERSION" || true
git tag -a "v$VESPA_VERSION" -m "Version $VESPA_VERSION"
make -f .copr/Makefile rpm outdir="$(pwd)"
git status
ls -lA
# - uses: actions/upload-artifact@v4
# with:
# name: vespa-rpm
test:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: vespa-rpm
- name: Build
uses: docker/build-push-action@v6
with:
load: true
tags: local-vespa-ann-benchmark
- uses: actions/checkout@v4
with:
repository: erikbern/ann-benchmarks
path: ann-benchmarks