mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-11-29 06:06:07 +01:00
Update maven.yml
This commit is contained in:
parent
f6c619d8ce
commit
c576d03721
69
.github/workflows/maven.yml
vendored
69
.github/workflows/maven.yml
vendored
@ -24,8 +24,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.m2
|
~/.m2
|
||||||
~/BuildTools
|
~/BuildTools
|
||||||
key: buildtools-cache-${{ hashFiles('spigot-*.jar') }}
|
key: buildtools-cache-${{ hashFiles('**/spigot-*.jar') }}
|
||||||
restore-keys: buildtools-cache-
|
|
||||||
|
|
||||||
- name: Check BuildTools cached
|
- name: Check BuildTools cached
|
||||||
run: |
|
run: |
|
||||||
@ -33,37 +32,37 @@ jobs:
|
|||||||
ls ~/BuildTools
|
ls ~/BuildTools
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set up JDK 8
|
# - name: Set up JDK 8
|
||||||
uses: actions/setup-java@v2
|
# uses: actions/setup-java@v2
|
||||||
with:
|
# with:
|
||||||
java-version: '8'
|
# java-version: '8'
|
||||||
distribution: 'adopt'
|
# distribution: 'adopt'
|
||||||
|
|
||||||
- name: Run BuildTools Pre 1.17
|
# - name: Run BuildTools Pre 1.17
|
||||||
working-directory: BuildTools
|
# working-directory: BuildTools
|
||||||
run: |
|
# run: |
|
||||||
cd ~/BuildTools
|
# cd ~/BuildTools
|
||||||
# make file runnable, might not be necessary
|
# # make file runnable, might not be necessary
|
||||||
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh"
|
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh"
|
||||||
# run script
|
# # run script
|
||||||
bash ${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh
|
# bash ${GITHUB_WORKSPACE}/BuildTools/build-pre1.17.sh
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- name: Set up JDK 16
|
# - name: Set up JDK 16
|
||||||
uses: actions/setup-java@v2
|
# uses: actions/setup-java@v2
|
||||||
with:
|
# with:
|
||||||
java-version: '16'
|
# java-version: '16'
|
||||||
distribution: 'adopt'
|
# distribution: 'adopt'
|
||||||
|
|
||||||
- name: Run BuildTools 1.17
|
# - name: Run BuildTools 1.17
|
||||||
working-directory: BuildTools
|
# working-directory: BuildTools
|
||||||
run: |
|
# run: |
|
||||||
cd ~/BuildTools
|
# cd ~/BuildTools
|
||||||
# make file runnable, might not be necessary
|
# # make file runnable, might not be necessary
|
||||||
chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
|
# chmod +x "${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh"
|
||||||
# run script
|
# # run script
|
||||||
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh
|
# bash ${GITHUB_WORKSPACE}/BuildTools/build-1.17.sh
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
@ -81,8 +80,14 @@ jobs:
|
|||||||
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh
|
bash ${GITHUB_WORKSPACE}/BuildTools/build-1.18+.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Check BuildTools cached
|
||||||
run: mvn -B package --file pom.xml
|
run: |
|
||||||
|
mkdir -p ~/BuildTools
|
||||||
|
ls ~/BuildTools
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
# - name: Build with Maven
|
||||||
|
# run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
|
Loading…
Reference in New Issue
Block a user