Skip to content

Commit

Permalink
Replace AppVeyor by GitHub Actions (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Jan 31, 2024
1 parent 5977702 commit 6450b73
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 40 deletions.
17 changes: 0 additions & 17 deletions .appveyor.yml

This file was deleted.

44 changes: 43 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
- push
- pull_request
jobs:
build:
Linux:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -46,3 +46,45 @@ jobs:
mvn -V -B -e \
verify -Djdk.version=${{ matrix.jdk }} -Dbytecode.version=${{ matrix.jdk }} \
--toolchains=toolchains.xml
Windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: 'zulu'
java-version: |
6
17
- name: 'Generate toolchains.xml'
env:
JDK_VERSION: 6
JDK_HOME_VARIABLE_NAME: JAVA_HOME_6_X64
shell: bash
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'
shell: bash
run: |
mvn -V -B -e \
verify -Djdk.version=6 -Dbytecode.version=5 \
--toolchains=toolchains.xml
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
id: artifact-upload-step
with:
name: jacoco
path: jacoco/target/*.zip
if-no-files-found: error
17 changes: 0 additions & 17 deletions .travis/appveyor-toolchains.xml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ JaCoCo Java Code Coverage Library
=================================

[![Build Status](https://dev.azure.com/jacoco-org/JaCoCo/_apis/build/status/JaCoCo?branchName=master)](https://dev.azure.com/jacoco-org/JaCoCo/_build/latest?definitionId=1&branchName=master)
[![Build status](https://ci.appveyor.com/api/projects/status/g28egytv4tb898d7/branch/master?svg=true)](https://ci.appveyor.com/project/JaCoCo/jacoco/branch/master)
[![Maven Central](https://img.shields.io/maven-central/v/org.jacoco/jacoco.svg)](http://search.maven.org/#search|ga|1|g%3Aorg.jacoco)

JaCoCo is a free Java code coverage library distributed under the Eclipse Public
Expand Down
7 changes: 3 additions & 4 deletions org.jacoco.doc/docroot/doc/environment.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ <h3>Continuous Integration</h3>
<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>

<p>
Expand All @@ -108,10 +107,10 @@ <h3>Development Build Artifacts</h3>
<li><b>Master:</b> The current master is available through the Maven
<a href="repo.html">snapshot repository</a>.</li>
<li><b>Pull Requests:</b> For every pull request the
<a href="https://ci.appveyor.com/project/JaCoCo/jacoco">AppVeyor builds</a>
<a href="https://github.com/jacoco/jacoco/actions">GitHub Actions builds</a>
provide the corresponding all-in-one zip for download. To access the
artifacts follow the check <code>continuous-integration/appveyor/branch</code>
on the corresponding GitHub pull request page.</li>
artifacts go to a summary page of a workflow run corresponding to the pull
request.</li>
</ul>

<h3>Continuous Inspection</h3>
Expand Down

0 comments on commit 6450b73

Please sign in to comment.