Skip to content

Commit

Permalink
build: Update workflow settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 3, 2024
1 parent 2ebdd5a commit 565e07c
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ name: Build
on:
pull_request:

env:
JAVA_VERSION: '8'
JAVA_DISTRO: 'zulu'

jobs:
build:
name: Build
Expand All @@ -30,11 +34,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up Java
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}

- uses: actions/cache@v3
with:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/early-access.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
push:
branches: [ master ]

env:
JAVA_VERSION: '8'
JAVA_DISTRO: 'zulu'

jobs:
earlyaccess:
name: EarlyAccess
Expand All @@ -37,11 +41,11 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Java
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}

- uses: actions/cache@v3
with:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,35 @@ on:
description: "Release version"
required: true

env:
JAVA_VERSION: '11'
JAVA_DISTRO: 'zulu'

jobs:
precheck:
name: Precheck
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.vars.outputs.VERSION }}
JAVA_VERSION: ${{ env.JAVA_VERSION }}
JAVA_DISTRO: ${{ env.JAVA_DISTRO }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Version
id: vars
shell: bash
run: |
echo ::set-output name=VERSION::${{ github.event.inputs.version }}
release:
name: Release
needs: [precheck]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 565e07c

Please sign in to comment.