diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..b2f9a5a --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,41 @@ +name: Check + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + workflow_dispatch: + +concurrency: + group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}" + cancel-in-progress: true + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest] + + runs-on: ${{ matrix.os }} + + env: + JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 + + steps: + - uses: actions/checkout@v6 + + - name: Set up JDK + uses: actions/setup-java@v5 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v5 + + - name: Run checks with Gradle + shell: bash + # gradle from "setup-gradle" is not the versionf from the wrapper - see https://github.com/gradle/actions/issues/273 + run: ./gradlew check diff --git a/.gitignore b/.gitignore index fb5dbcf..bf5d865 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ bin/ build/ *.pdf -.* \ No newline at end of file + +.* +!.github/ diff --git a/gradlew b/gradlew old mode 100644 new mode 100755