Skip to content

Commit 1c897e7

Browse files
committed
first cut at API checking
API files should be initialized now, modulo stray BOMs.
1 parent 5d517c2 commit 1c897e7

5 files changed

+19741
-3
lines changed

.github/workflows/check-api.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,15 @@ jobs:
4747

4848
# I was going to use the canned action, but it only supports a single package and reinstalls the same binary each time
4949
- name: Install print-api
50-
shell: bash
5150
run: |
5251
wget -q https://github.com/Kleidukos/print-api/releases/download/v0.1.0.1/print-api-0.1.0.1-Linux-static-${{ matrix.ghc }}-x86_64.tar.gz
5352
tar -xzvf print-api-0.1.0.1-Linux-static-${{ matrix.ghc }}-x86_64.tar.gz
5453
chmod +x print-api
5554
5655
# print-api needs environment files. It also doesn't make a lot of sense to use the cached builds, sadly,
57-
# since they're special in different ways (bootstrap and validate) and we want a vanulla build. And there
56+
# since they're special in different ways (bootstrap and validate) and we want a vanilla build. And there
5857
# isn't enough cache space to make a third cache, even though this is a very limited build.
5958
- name: Build Cabal with environment files
60-
shell: bash
6159
run: cabal build Cabal-syntax Cabal --write-ghc-environment-files=always --project-file=cabal.release.project
6260

6361
- name: Check Cabal-syntax and Cabal APIs
@@ -66,3 +64,15 @@ jobs:
6664
./print-api --package-name Cabal > Cabal.api
6765
diff Cabal-syntax.api Cabal-syntax/Cabal-syntax-${{ matrix.ghc }}-${{ matrix.sys.os }}.api
6866
diff Cabal.api Cabal/Cabal-${{ matrix.ghc }}-${{ matrix.sys.os }}.api
67+
68+
# for convenience, since large changes would be a pain to reconstruct from diffs and
69+
# contributors aren't guaranteed to have ubuntu-latest handy
70+
- uses: actions/upload-artifact@v3
71+
with:
72+
name: Cabal-syntax.api
73+
path: Cabal-syntax.api
74+
75+
- uses: actions/upload-artifact@v3
76+
with:
77+
name: Cabal.api
78+
path: Cabal.api

0 commit comments

Comments
 (0)