-
Notifications
You must be signed in to change notification settings - Fork 157
48 lines (45 loc) · 1.5 KB
/
simdutf-flag-alpine.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: simdutf-flag-alpine-static-9.4
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
container: alpine:3.12
strategy:
matrix:
os: ['ubuntu-latest']
ghc: ['latest']
fail-fast: false
steps:
- name: Install system dependencies
run: |
apk add --no-cache curl gcc g++ gmp-dev ncurses-dev libffi-dev make xz gzip tar perl git bash sudo binutils-gold
apk add --no-cache zlib zlib-dev zlib-static gmp gmp-dev ncurses-static
- name: Install ghcup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://downloads.haskell.org/~ghcup/x86_64-linux-ghcup > /usr/bin/ghcup
chmod +x /usr/bin/ghcup
echo "$HOME/.ghcup/bin" $GITHUB_PATH
shell: bash
- name: Install GHC and cabal
run: |
ghcup install ghc --force -i /usr/local
ghcup install cabal --force -i /usr/local/bin
shell: bash
- name: Update cabal package database
run: cabal update
- uses: actions/checkout@v4
- name: Test
run: |
cat > THLinkTest.hs <<EOF
{-# LANGUAGE TemplateHaskell #-}
import Debug.Trace
import Data.Text
main :: IO ()
main = return ()
( traceM (unpack (pack "test")) >> pure [] )
EOF
cabal build -f-simdutf --disable-tests --disable-benchmarks
cabal exec -f-simdutf --disable-tests --disable-benchmarks ghc -- THLinkTest.hs
shell: bash