From 95881157585a747c8ed6c11c9af6fdeba77ea9bf Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Tue, 9 Jul 2024 18:34:22 +0200 Subject: [PATCH] Add new workflows --- .github/workflows/build.yaml | 45 +++++------------------------ .github/workflows/dependencies.yaml | 11 +++++++ .github/workflows/publish.yaml | 17 +++++++++++ 3 files changed, 35 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/dependencies.yaml create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 13b24c2..06a2584 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,41 +1,10 @@ +--- name: Build -on: - push: - branches: - - master - pull_request: - branches: - - master + +on: # yamllint disable-line rule:truthy + push: {} + pull_request: {} + jobs: build: - strategy: - fail-fast: false - matrix: - os: [ubuntu-20.04, windows-2019, macos-10.15, macos-11] - java: [8, 11] - gradle: [6.9.1] - experimental: [false] - runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.experimental }} - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java }} - - uses: actions/cache@v2 - id: cache-gradle - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: gradle-${{ runner.os }}-${{ matrix.gradle }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - gradle-${{ runner.os }}- - - uses: eskatos/gradle-command-action@v1 - with: - gradle-version: ${{ matrix.gradle }} - arguments: buildAll --parallel --stacktrace - - id: print-jvm-crash-logs - if: ${{ failure() }} - run: cat hs_err_pid*.log; cat **/hs_err_pid*.log; cat replay_pid*.log; cat **/replay_pid*.log; true - shell: bash + uses: metaborg/actions/.github/workflows/gradle-build-matrix.yaml@main diff --git a/.github/workflows/dependencies.yaml b/.github/workflows/dependencies.yaml new file mode 100644 index 0000000..2dfa0ef --- /dev/null +++ b/.github/workflows/dependencies.yaml @@ -0,0 +1,11 @@ +--- +name: 'Submit Dependencies' + +on: # yamllint disable-line rule:truthy + push: + branches: + - master + +jobs: + build: + uses: metaborg/actions/.github/workflows/gradle-dependencies.yaml@main diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..40f8533 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,17 @@ +--- +name: 'Publish' + +on: # yamllint disable-line rule:truthy + push: + tags: + - "release-*.*.*" + +jobs: + build: + uses: metaborg/actions/.github/workflows/gradle-publish.yaml@main + secrets: + METABORG_ARTIFACTS_USERNAME: ${{ secrets.METABORG_ARTIFACTS_USERNAME }} + METABORG_ARTIFACTS_PASSWORD: ${{ secrets.METABORG_ARTIFACTS_PASSWORD }} + # SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} + # SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} + # SIGNING_KEY: ${{ secrets.SIGNING_KEY }}