Skip to content

fix mem issue for gh actions? #178

fix mem issue for gh actions?

fix mem issue for gh actions? #178

Workflow file for this run

name: build
on:
push:
branches:
- master
tags:
- "*-[0-9]+.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
- name: Install Xvfb
run: sudo apt-get update && sudo apt-get install -y xvfb
- name: Set up CI environment
run: .github/setup.sh
- name: Increase Maven memory limits
run: echo "MAVEN_OPTS=-Xmx4g" >> $GITHUB_ENV
- name: Execute the build
run: xvfb-run --auto-servernum .github/build.sh
env:
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
SIGNING_ASC: ${{ secrets.SIGNING_ASC }}