Skip to content

Commit

Permalink
Add new workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 9, 2024
1 parent b1de033 commit 9588115
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 38 deletions.
45 changes: 7 additions & 38 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions .github/workflows/dependencies.yaml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 9588115

Please sign in to comment.