Skip to content

Commit

Permalink
Migrate workflows to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
esolitos authored and gitbutler-client committed Aug 15, 2024
1 parent d3946bd commit ef69f87
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

schedule:
- cron: "0 0 * * *"

jobs:
build:
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 for the xq dependency

container:
image: almalinux:8

steps:
- uses: actions/checkout@v4

- name: Setup xq
run: |
sudo apt-get install -y 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
- name: build-rpm
run: |
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

0 comments on commit ef69f87

Please sign in to comment.