Update pipeline.yml

This commit is contained in:
Valentyn Kolesnikov 2023-08-28 18:13:22 +03:00
parent be33deb7d5
commit 2c674be1b6
3 changed files with 2 additions and 31 deletions

View File

@ -10,35 +10,6 @@ on:
branches: [ master ]
jobs:
# old-school build and jar method. No tests run or compiled.
build-8:
runs-on: ubuntu-latest
strategy:
matrix:
# build for java 8, however don't run any tests
java: [ 8, 11, 17, 19, 20 ]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Compile Java ${{ matrix.java }}
run: |
mkdir -p target/classes
javac -d target/classes/ src/main/java/org/json/*.java
- name: Create java ${{ matrix.java }} JAR
run: |
jar cvf target/org.json.jar -C target/classes .
- name: Upload Java ${{ matrix.java }} JAR
uses: actions/upload-artifact@v1
with:
name: Java ${{ matrix.java }} JAR
path: target/org.json.jar
build:
runs-on: ubuntu-latest
strategy:

View File

@ -8,7 +8,7 @@ JSON in Java [package org.json]
[![Maven Central](https://img.shields.io/maven-central/v/org.json/json.svg)](https://mvnrepository.com/artifact/org.json/json)
**[Click here if you just want the latest release jar file.](https://search.maven.org/remotecontent?filepath=org/json/json/20230227/json-20230227.jar)**
**[Click here if you just want the latest release jar file.](https://search.maven.org/remotecontent?filepath=org/json/json/20230618/json-20230618.jar)**
# Overview

View File

@ -173,4 +173,4 @@
</plugin>
</plugins>
</build>
</project>
</project>