mirror of
https://github.com/TauMC/TauLauncher.git
synced 2026-11-29 19:32:09 -05:00
42 lines
880 B
YAML
42 lines
880 B
YAML
name: Build and Test on Linux, Windows, and macOS
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
fail-fast: false
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v4
|
|
|
|
- name: Build and test with Gradle
|
|
run: ./gradlew build --no-daemon
|
|
|
|
- name: Store reports
|
|
if: failure()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: reports-${{ matrix.os }}
|
|
path: |
|
|
**/build/reports/
|
|
**/build/test-results/ |