Skip to content

Commit

Permalink
update gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed authored Jun 1, 2024
1 parent 82d25b9 commit e0a0a03
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
24 changes: 10 additions & 14 deletions app/src/main/resources/common/.github/workflows/build.yml.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,32 @@ env:
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC"
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC"
TERM: xterm-256color
JDK_CURRENT: <%javaVersion%>

on:
push:
branches: [ <%branch%> ]
pull_request:
branches: [ <%branch%> ]

concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}"
cancel-in-progress: ${{ github.event_name == 'push' }}

jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
build:
needs: cancel-previous-runs
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
jdk: [ <%javaVersion%> ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4.0.0
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.JDK_CURRENT }}
java-version: ${{ matrix.jdk }}
distribution: 'corretto'
- name: Build
- name: Build with ${{ matrix.jdk }} on ${{ matrix.os }}
run: ./gradlew clean build
<%={{ }}=%>
4 changes: 2 additions & 2 deletions ci/sync-overlay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ git status
echo "Updating project README"
warning="# IMPORTANT NOTE<br/>"
warning="${warning}******************************************************<br/>"
warning="${warning}This repository is always automatically generated from the CAS Initializr. "
warning="${warning}Do NOT submit pull requests here as the change-set will be overwritten on the next sync."
warning="${warning}This repository is always automatically generated from the [CAS Initializr](https://github.com/apereo/cas-initializr). "
warning="${warning}Do NOT submit pull requests here as the change-set will be overwritten on the next sync. "
warning="${warning}To learn more, please visit the [CAS documentation](https://apereo.github.io/cas)."
warning="${warning}<br/>******************************************************<br/>"
text=$(echo "${warning}"; cat README.md)
Expand Down

0 comments on commit e0a0a03

Please sign in to comment.