-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1.01 KB
/
check.yml
File metadata and controls
34 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Check
on:
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
jobs:
check:
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, preset: linuxX64}
- {os: windows-latest, preset: mingwX64}
# - {os: macos-12, preset: macosX64} deprecated in GitHub Actions
- {os: macos-14, preset: macosArm64}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: zulu
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: chmod +x ${{ github.workspace }}/gradlew
- uses: gradle/gradle-build-action@v2
with:
arguments: check
- if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports-${{ matrix.config.preset }}
path: ${{ github.workspace }}/*/build/reports/*