Skip to content

New community build workflow #6

New community build workflow

New community build workflow #6

name: Community build
on:
push:
branches: [main]
tags: ["*"]
pull_request:
workflow_dispatch:
inputs:
scipJavaVersion:
description: 'Version of bindgen to run (if empty, main branch will be republished)'
required: false
default: ''
type: string
jobs:
build_from_source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
cache: 'sbt'
- uses: sbt/setup-sbt@v1
- run: sbt cli/pack
- run: |
cd scip-java/target/pack && zip -r ../../../scip-java.zip .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: scip-java.zip
name: scip-java-binary
if-no-files-found: error
community_build:
runs-on: ubuntu-latest
needs: [build_from_source]
strategy:
fail-fast: true
matrix:
include:
- repo: spring-projects/spring-data-relational
jdk: 11
cache: maven
steps:
- name: Download binaries
uses: actions/download-artifact@v4
id: scip-java-binary
with:
path: binaries
- name: List downloaded binaries
run: ls -R binaries
- name: Unpack scip-java build
run: |
unzip binaries/scip-java-binary/scip-java.zip
working-directory: scip-java
- uses: actions/checkout@v3
with:
repository: ${{ matrix.repo }}
path: sources
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
cache: ${{ matrix.cache }}
- run: ../scip-java/bin/scip-java index
working-directory: sources