mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-06 08:07:28 +01:00
Merge pull request #342 from juhp/add-build-ci
add GH action to build the project
This commit is contained in:
commit
8001335ed3
27
.github/workflows/build.yml
vendored
Normal file
27
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Haskell GHC
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: haskell-actions/setup@v2
|
||||||
|
with:
|
||||||
|
enable-stack: true
|
||||||
|
stack-no-global: true
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.stack
|
||||||
|
.stack-work
|
||||||
|
key: ${{ runner.os }}-${{ hashFiles('**/*.cabal','**/stack.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-
|
||||||
|
- run: stack build
|
||||||
Loading…
Reference in New Issue
Block a user