mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
Update pipeline.yml
This commit is contained in:
parent
be33deb7d5
commit
2c674be1b6
29
.github/workflows/pipeline.yml
vendored
29
.github/workflows/pipeline.yml
vendored
@ -10,35 +10,6 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
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:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -8,7 +8,7 @@ JSON in Java [package org.json]
|
|||||||
|
|
||||||
[](https://mvnrepository.com/artifact/org.json/json)
|
[](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
|
# Overview
|
||||||
|
Loading…
x
Reference in New Issue
Block a user