Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate workflow for building sample apps to Github Actions #1443

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Build Sample Apps

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

defaults:
run:
shell: bash

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Build
run: |
mvn -V --batch-mode --no-snapshot-updates install
35 changes: 3 additions & 32 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
shared:
settings:
email:
addresses: [[email protected],[email protected]]
addresses: [[email protected], [email protected]]
statuses: [SUCCESS, FAILURE]
environment:
USER_SHELL_BIN: bash
Expand Down Expand Up @@ -57,35 +57,6 @@ jobs:
--swap-urls '(https\://github.com.*/master/.*)#.*:\1,(https\://github.com.*/main/.*)#.*:\1,^(?!https)(.*)\.md:\1.html' \
_site

build-apps:
requires: [~pr, ~commit]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/cpu: HIGH
screwdriver.cd/ram: HIGH
steps:
- build: |
set -e
mvn -V --batch-mode --no-snapshot-updates install

verify-guides:
requires: [~pr, ~commit]
sourcePaths: ["!billion-scale-vector-search/", "!billion-scale-image-search/", "!screwdriver.yml", "!examples/model-deployment/"]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/cpu: TURBO
screwdriver.cd/ram: TURBO
screwdriver.cd/dockerEnabled: true
screwdriver.cd/dockerCpu: TURBO
screwdriver.cd/dockerRam: TURBO
screwdriver.cd/timeout: 180
screwdriver.cd/buildPeriodically: H H(0-5) * * 1-5 # some time between 12:00 AM UTC (midnight) to 5:59 AM UTC Mon-Fri
steps:
- *install-deps
- run-tests: |
cd $SD_DIND_SHARE_PATH
$SD_SOURCE_DIR/test/test.py -v -w $SD_SOURCE_DIR -c $SD_SOURCE_DIR/test/_test_config.yml

verify-billion-scale-vector-search:
requires: [~pr, ~commit]
sourcePaths: ["billion-scale-vector-search/"]
Expand Down Expand Up @@ -123,8 +94,8 @@ jobs:
$SD_SOURCE_DIR/test/test.py -w $SD_SOURCE_DIR $SD_SOURCE_DIR/billion-scale-image-search/README.md

verify-notebooks:
requires: [~commit,~pr]
sourcePaths: [ "examples/model-deployment/","text-image-search/" ]
requires: [~commit, ~pr]
sourcePaths: ["examples/model-deployment/", "text-image-search/"]
image: vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/timeout: 120
Expand Down