work pls
This commit is contained in:
parent
6c4d6532be
commit
289c91e648
@ -1,69 +1,30 @@
|
|||||||
Logo
|
name: build
|
||||||
Issues
|
on: [pull_request, push]
|
||||||
Pull Requests
|
|
||||||
Milestones
|
|
||||||
Explore
|
|
||||||
MCTorn
|
|
||||||
/
|
|
||||||
Gallium
|
|
||||||
Private
|
|
||||||
Code
|
|
||||||
Issues
|
|
||||||
Pull Requests
|
|
||||||
Actions
|
|
||||||
Packages
|
|
||||||
Projects
|
|
||||||
Releases
|
|
||||||
Wiki
|
|
||||||
Activity
|
|
||||||
Settings
|
|
||||||
Gallium
|
|
||||||
/
|
|
||||||
.gitea
|
|
||||||
/
|
|
||||||
workflows
|
|
||||||
/
|
|
||||||
build.yml
|
|
||||||
jreimers
|
|
||||||
Jannik Reimers
|
|
||||||
8202eed691
|
|
||||||
forgot adding gambling permissions to gradlew
|
|
||||||
4 days ago
|
|
||||||
35 lines
|
|
||||||
1.1 KiB
|
|
||||||
YAML
|
|
||||||
# Automatically build the project and run any configured tests for every push
|
|
||||||
# and submitted pull request. This can help catch issues that only occur on
|
|
||||||
# certain platforms or Java versions, and provides a first line of defence
|
|
||||||
# against bad commits.
|
|
||||||
|
|
||||||
name: build
|
jobs:
|
||||||
on: [pull_request, push]
|
build:
|
||||||
|
strategy:
|
||||||
jobs:
|
matrix:
|
||||||
build:
|
java: [21]
|
||||||
strategy:
|
os: [ubuntu-22.04]
|
||||||
matrix:
|
runs-on: ${{ matrix.os }}
|
||||||
java: [21]
|
steps:
|
||||||
os: [ubuntu-22.04]
|
- name: checkout repository
|
||||||
runs-on: ${{ matrix.os }}
|
uses: actions/checkout@v4
|
||||||
steps:
|
- name: validate gradle wrapper
|
||||||
- name: checkout repository
|
uses: gradle/wrapper-validation-action@v1
|
||||||
uses: actions/checkout@v4
|
- name: Grant execute permission for gradlew
|
||||||
- name: validate gradle wrapper
|
run: chmod +x gradlew
|
||||||
uses: gradle/wrapper-validation-action@v1
|
- name: setup jdk ${{ matrix.java }}
|
||||||
- name: Grant execute permission for gradlew
|
uses: actions/setup-java@v3
|
||||||
run: chmod +x gradlew
|
with:
|
||||||
- name: setup jdk ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v3
|
distribution: 'microsoft'
|
||||||
with:
|
- name: build
|
||||||
java-version: ${{ matrix.java }}
|
run: ./gradlew build
|
||||||
distribution: 'microsoft'
|
- name: capture build artifacts
|
||||||
- name: build
|
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
|
||||||
run: ./gradlew build
|
uses: actions/upload-artifact@v3
|
||||||
- name: capture build artifacts
|
with:
|
||||||
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
|
name: Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
path: build/libs/
|
||||||
with:
|
|
||||||
name: Artifacts
|
|
||||||
path: build/libs/
|
|
Loading…
x
Reference in New Issue
Block a user