Update ci.yml #8
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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Soot CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
StyleAndLicense: | |
name: Check style´and license conformity | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Java 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '8' | |
- name: Stylecheck | |
if: always() | |
run: | | |
bash ASM/build-project.sh | |
mvn -B clean checkstyle:check -Dcheckstyle.failOnViolation=true | |
- name: Licensecheck | |
if: always() | |
run: | | |
mvn -B clean license:check-file-header -Dlicence-check.failOnMissingHeader=true | |
BuildAndTest: | |
name: Build and Test with java ${{ matrix.java_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java_version: ['8', '9', '11'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Java ${{ matrix.java_version }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java_version }} | |
- name: Build and test Java ${{ matrix.java_version }} | |
run: | | |
mvn -B clean test -PJava${{ matrix.java_version }} | |
- name: Build Release | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
mvn clean compile assembly:single source:jar | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: target/sootclasses-trunk-jar-with-dependencies.jar |