From 8314cb056bac139bed0b480473e8dcb4e9133797 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Fri, 24 May 2024 16:50:55 +0200 Subject: [PATCH] Revert "Use new GitHub workflow" This reverts commit f425612a43741b9d02aaa32598b01c6e32fd0be2. # Conflicts: # .github/workflows/build.yaml --- .github/workflows/build.yaml | 21 --------------- .github/workflows/build.yml | 51 ++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/build.yaml create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 32005a9..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Build - -on: # yamllint disable-line rule:truthy - push: - branches: - - master - - develop - tags: - - "release-*.*.*" - pull_request: - branches: - - master - - develop - -jobs: - build: - uses: metaborg/actions/.github/workflows/gradle-build-matrix.yaml@main - with: - gradle-command: | - gradle buildAll --parallel --stacktrace diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8a4e1bd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +--- +name: Build + +on: # yamllint disable-line rule:truthy + push: + branches: + - master + - develop + tags: + - "release-*.*.*" + pull_request: + branches: + - master + - develop + +jobs: + build: + name: Build + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + java: [11] + gradle: [7.6.4] + runs-on: ${{ matrix.os }} + timeout-minutes: 10 # Timeout in 10 minutes, as Stratego initialization can sometimes deadlock + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + - name: Validate Gradle wrapper + uses: gradle/actions/wrapper-validation@v3 + - name: Setup JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + - name: Setup Gradle ${{ matrix.gradle }} + uses: gradle/actions/setup-gradle@v3 + with: + gradle-version: ${{ matrix.gradle }} + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" + build-scan-terms-of-use-agree: "yes" + - name: Build + run: | + gradle buildAll --parallel --stacktrace + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}