Skip to content

Commit

Permalink
Add configuration for GitHub Actions (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Jan 25, 2024
1 parent 50fa941 commit 5977702
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on:
- push
- pull_request
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- jdk: 8
- jdk: 11
- jdk: 17
- jdk: 21
name: JDK ${{ matrix.jdk }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: 'zulu'
java-version: |
${{ matrix.jdk }}
17
- name: 'Generate toolchains.xml'
env:
JDK_VERSION: ${{ matrix.jdk }}
JDK_HOME_VARIABLE_NAME: JAVA_HOME_${{ matrix.jdk }}_X64
run: |
echo "
<toolchains>
<toolchain>
<type>jdk</type>
<provides>
<id>$JDK_VERSION</id>
<version>$JDK_VERSION</version>
</provides>
<configuration>
<jdkHome>${!JDK_HOME_VARIABLE_NAME}</jdkHome>
</configuration>
</toolchain>
</toolchains>
" > toolchains.xml
- name: 'Build'
run: |
mvn -V -B -e \
verify -Djdk.version=${{ matrix.jdk }} -Dbytecode.version=${{ matrix.jdk }} \
--toolchains=toolchains.xml
1 change: 1 addition & 0 deletions org.jacoco.doc/docroot/doc/environment.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ <h3>Continuous Integration</h3>
</p>

<ul>
<li><a href="https://github.com/jacoco/jacoco/actions">GitHub Actions</a></li>
<li><a href="https://dev.azure.com/JaCoCo-org/JaCoCo/_build">Azure Pipelines</a></li>
<li><a href="https://ci.appveyor.com/project/JaCoCo/jacoco">AppVeyor</a></li>
</ul>
Expand Down

0 comments on commit 5977702

Please sign in to comment.