Next development version: 2022.2.10-SNAPSHOT #64
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
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: "Grace Joint Validation Build" | |
# GROOVY_3_0_X == Grace 2022.0.x | |
# GROOVY_4_0_X == Grace 2023.0.x | |
# Groovy master branch does not map to any due to changed package names. | |
on: | |
push: | |
branches: | |
- 2022.2.x | |
pull_request: | |
branches: | |
- 2022.2.x | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-22.04] | |
java: ['11'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
- name: env | |
run: env | |
# Select correct Groovy branch for this build: | |
- name: Checkout Groovy 3_0_X (Grace 2022.1.x) | |
run: cd .. && git clone --depth 1 https://github.com/apache/groovy.git -b GROOVY_3_0_X --single-branch | |
if: github.ref == 'refs/heads/2022.2.x' || github.base_ref == '2022.2.x' || github.ref == 'refs/heads/2022.1.x' || github.base_ref == '2022.1.x' || github.ref == 'refs/heads/2022.0.x' || github.base_ref == '2022.0.x' || github.ref == 'refs/heads/master' || github.base_ref == 'master' | |
- name: Checkout Groovy 4_0_X (Grace 2023.0.x) | |
run: cd .. && git clone --depth 1 https://github.com/graceframework/grace-framework.git -b GROOVY_4_0_X --single-branch | |
if: github.ref == 'refs/heads/2023.0.x' || github.base_ref == '2023.0.x' | |
- name: Set CI_GROOVY_VERSION for Grace | |
run: | | |
cd ../groovy | |
echo 'CI_GROOVY_VERSION<<EOF' >> $GITHUB_ENV | |
echo "$(cat gradle.properties | grep groovyVersion | cut -d\= -f2 | tr -d '[:space:]' >> $GITHUB_ENV)" >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
- name: echo CI_GROOVY_VERSION | |
run: echo $CI_GROOVY_VERSION | |
- name: Build and install groovy (no docs) | |
run: cd ../groovy && ./gradlew clean install -x groovydoc -x javadoc -x javadocAll -x groovydocAll -x asciidoc -x docGDK -x codenarcMain -x codenarcTest -x checkstyleMain -x checkstyleTest --no-build-cache --no-scan --no-daemon | |
timeout-minutes: 60 | |
- name: Build Grace | |
run: ./gradlew clean build test -x groovydoc -x codenarcMain -x codenarcTest -x checkstyleMain -x checkstyleTest --no-build-cache --no-scan --no-daemon | |
timeout-minutes: 60 |