-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (85 loc) · 2.31 KB
/
ci.yml
File metadata and controls
97 lines (85 loc) · 2.31 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Haskell CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-13, windows-latest]
ghc: ['9.4', '9.6', '9.8', '9.10', '9.12']
include:
- os: ubuntu-latest
ghc: '8.10'
- os: ubuntu-latest
ghc: '9.0'
- os: ubuntu-latest
ghc: '9.2'
- os: macOS-latest
ghc: "9.4"
- os: macOS-latest
ghc: "9.6"
- os: macOS-latest
ghc: "9.8"
- os: macOS-latest
ghc: "9.10"
- os: macOS-latest
ghc: "9.12"
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
if: matrix.os == 'windows-latest'
with:
update: true
install: >-
autoconf-wrapper
autotools
curl
gettext
gettext-devel
libtool
tar
xz
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get -y update
sudo apt-get -y install libtinfo6 libncurses6 autopoint libltdl-dev
- name: Set up Homebrew
if: runner.os == 'macOS'
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install autoconf autoconf-archive automake gettext libtool
brew link libtool
- uses: haskell/ghcup-setup@v1
with:
ghc: ${{ matrix.ghc }}
cabal: latest
- name: Build
run: |
set -eux
cabal update
autoreconf -i
cabal check
cabal sdist all
cabal unpack ./dist-newstyle/sdist/libffi-clib-*.tar.gz
cd libffi-clib-*/
autoreconf -i
cabal build
shell: bash
i386:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run build (32 bit linux)
uses: docker://hasufell/i386-alpine-haskell:3.12
with:
args: sh -c "ghcup install cabal --isolate=/usr/bin latest --force && apk add gettext gettext-dev autoconf automake libtool && cabal update && autoreconf -i && cabal build"