fix: Add support LimitCPU=,LimitData=, etc... (Resolves #312) #227
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
issues: read | |
checks: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
distribution: [ 'temurin' ] | |
java: [ '21' ] | |
name: Java ${{ matrix.Java }} Build | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Install m4 | |
run: | | |
sudo apt-get install -y m4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Cache artifacts | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build with Gradle | |
run: | | |
mkdir -p ./build | |
docker compose --project-directory ./systemd-build up --build | |
./generate-changelog > build/CHANGELOG | |
./gradlew test buildPlugin | |
./gradlew --stop | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
junit_files: build/test-results/**/*.xml |