Skip to content

Commit 5400120

Browse files
Create llami_release.yml
1 parent 70f19b9 commit 5400120

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/llami_release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Haskell CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-haskell@v1
22+
with:
23+
ghc-version: '9.8.2'
24+
cabal-version: '3.10.3.0'
25+
26+
- name: Cache
27+
uses: actions/cache@v3
28+
env:
29+
cache-name: cache-cabal
30+
with:
31+
path: ~/.cabal
32+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
33+
restore-keys: |
34+
${{ runner.os }}-build-${{ env.cache-name }}-
35+
${{ runner.os }}-build-
36+
${{ runner.os }}-
37+
38+
- name: Install dependencies
39+
run: |
40+
cabal update
41+
cabal build --only-dependencies
42+
43+
- name: Build
44+
run: cabal build
45+
46+
- name: Release
47+
run: cabal list-bin llami
48+

0 commit comments

Comments
 (0)