{"id":13531498,"url":"https://github.com/vmchale/github-actions-dhall","last_synced_at":"2025-04-01T19:32:10.980Z","repository":{"id":50004041,"uuid":"226202687","full_name":"vmchale/github-actions-dhall","owner":"vmchale","description":"Dhall helpers for github actions","archived":true,"fork":false,"pushed_at":"2023-11-08T15:53:20.000Z","size":90,"stargazers_count":55,"open_issues_count":2,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-02T18:41:28.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dhall","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmchale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-05T22:50:37.000Z","updated_at":"2024-09-27T16:01:24.000Z","dependencies_parsed_at":"2024-11-02T18:31:59.431Z","dependency_job_id":"d0135165-7e78-4ff5-8398-e71e9332e5b7","html_url":"https://github.com/vmchale/github-actions-dhall","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fgithub-actions-dhall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fgithub-actions-dhall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fgithub-actions-dhall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fgithub-actions-dhall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmchale","download_url":"https://codeload.github.com/vmchale/github-actions-dhall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700622,"owners_count":20819905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:01:03.452Z","updated_at":"2025-04-01T19:32:09.342Z","avatar_url":"https://github.com/vmchale.png","language":"Dhall","funding_links":[],"categories":["Libraries","Dhall"],"sub_categories":[],"readme":"# github-actions-dhall\n\nThis is a demonstration using Dhall to generate YAML for\ngithub actions.\n\ngithub-actions-dhall is\n[self-hosting](https://github.com/vmchale/github-actions-dhall/blob/master/self-ci.dhall).\n\n## Example\n\n### Haskell\n\nStore the following in `example.dhall`:\n\n```dhall\nlet haskellCi = https://raw.githubusercontent.com/vmchale/github-actions-dhall/master/haskell-ci.dhall\n\nin    haskellCi.generalCi\n        haskellCi.matrixSteps\n        ( Some\n            { ghc =\n              [ haskellCi.GHC.GHC8101\n              , haskellCi.GHC.GHC883\n              , haskellCi.GHC.GHC865\n              ]\n            , cabal = [ haskellCi.Cabal.Cabal32 ]\n            }\n        )\n    : haskellCi.CI.Type\n```\n\nThen, generate YAML with `dhall-to-yaml --file example.dhall`\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-18.04\n    steps:\n      - uses: \"actions/checkout@v1\"\n      - id: setup-haskell-cabal\n        uses: \"actions/setup-haskell@v1.1\"\n        with:\n          cabal-version: \"${{ matrix.cabal }}\"\n          ghc-version: \"${{ matrix.ghc }}\"\n      - uses: \"actions/cache@v1\"\n        with:\n          key: \"${{ runner.os }}-${{ matrix.ghc }}-cabal\"\n          path: \"${{ steps.setup-haskell-cabal.outputs.cabal-store }}\"\n      - name: Install dependencies\n        run: |\n          cabal update\n          cabal build --enable-tests --enable-benchmarks --only-dependencies\n      - name: build\n        run: cabal build --enable-tests --enable-benchmarks\n      - name: test\n        run: cabal test\n      - name: haddock\n        run: cabal haddock\n    strategy:\n      matrix:\n        cabal:\n          - '3.2'\n        ghc:\n          - '8.10.1'\n          - '8.8.3'\n          - '8.6.5'\nname: Haskell CI\non:\n  - push\n```\n\nHave a look at\n[hlint-lib](https://github.com/vmchale/hlint-lib/blob/master/self-ci.dhall) for\na more \"organic\" example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fgithub-actions-dhall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmchale%2Fgithub-actions-dhall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fgithub-actions-dhall/lists"}