Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfmpe committed Nov 2, 2024
1 parent 70dc4f0 commit e5cf947
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/haskell.yml → .github/workflows/callee.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
name: github-action

on: [push, pull_request]
name: Reusable haskell build workflow

on:
workflow_call:
# https://github.com/orgs/community/discussions/11692
inputs:
matrix-ghc:
required: true
type: string
matrix-os:
required: true
type: string

jobs:
build:
strategy:
fail-fast: false
matrix:
ghc: ['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.5', '9.4.5', '9.6.1', '9.8.2', '9.10.1']
os: ['ubuntu-latest', 'macos-latest']
ghc: ${{ fromJson(inputs.matrix-ghc) }}
os: ${{ fromJson(inputs.matrix-os) }}
runs-on: ${{ matrix.os }}

name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/caller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: github-action

on: [push, pull_request]

jobs:
build:
uses: ./.github/workflows/callee.yml
with:
matrix-ghc: "['8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.1', '9.2.5', '9.4.5', '9.6.1', '9.8.2', '9.10.1']"
matrix-os: "['ubuntu-latest', 'macos-latest']"
Empty file added .github/workflows/hello
Empty file.

0 comments on commit e5cf947

Please sign in to comment.