Update .forgejo/workflows/build.yaml
This commit is contained in:
parent
5afc89fe51
commit
c42b64790a
1 changed files with 15 additions and 4 deletions
|
@ -1,12 +1,11 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
|
||||||
image: eclipse-temurin:21-jdk
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
|
@ -15,8 +14,20 @@ jobs:
|
||||||
- name: make gradle wrapper executable
|
- name: make gradle wrapper executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
|
- name: set up jdk
|
||||||
|
run: |
|
||||||
|
JDK_VERSION="8"
|
||||||
|
PLATFORM="linux"
|
||||||
|
ARCH="x64"
|
||||||
|
INSTALL_DIR="/opt/java"
|
||||||
|
mkdir -p "$INSTALL_DIR"
|
||||||
|
DOWNLOAD_URL="https://cdn.azul.com/zulu/bin/zulu8.84.0.15-ca-jdk8.0.442-linux_x64.tar.gz"
|
||||||
|
|
||||||
|
echo "Downloading from $DOWNLOAD_URL"
|
||||||
|
curl -L "$DOWNLOAD_URL" | tar -xz -C "$INSTALL_DIR"
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
run: ./gradlew build
|
run: JAVA_HOME="zulu8.84.0.15-ca-jdk8.0.442-linux_x64" ./gradlew build
|
||||||
|
|
||||||
- name: capture build artifacts
|
- name: capture build artifacts
|
||||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v3
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v3
|
||||||
|
|
Loading…
Add table
Reference in a new issue