Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Oct 20, 2024
1 parent 9e49971 commit bc5f9c9
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,20 @@ name: Build Gradle
on:
push:
branches:
- 'master'
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'main'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-gradle:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}

runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -40,12 +35,11 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Run build and tests with Gradle wrapper
run: ./gradlew test build
- name: Run build with Gradle wrapper
run: ./gradlew build

- name: Upload all artifacts
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
with:
name: jars
path: |
Expand Down

0 comments on commit bc5f9c9

Please sign in to comment.