New community build workflow #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 17 | |
- repo: spring-projects/spring-framework | |
jdk: 17 | |
- repo: spring-projects/spring-boot | |
jdk: 17 | |
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 -d scip-java | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ matrix.repo }} | |
path: sources | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.jdk }} | |
- run: ../scip-java/bin/scip-java index | |
working-directory: sources | |