Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit c01ab56

Browse files
committed
Fix build script, add freezefile
1 parent 486e68d commit c01ab56

File tree

4 files changed

+91
-2
lines changed

4 files changed

+91
-2
lines changed

.github/workflows/haskell.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- uses: actions/upload-artifact@v3
2222
with:
2323
name: build-${{ runner.os }}
24-
path: cabal2json.wasm
24+
path: cabal2json.opt.wasm
2525
- name: Release
2626
uses: softprops/action-gh-release@v1
2727
if: startsWith(github.ref, 'refs/tags/')
2828
with:
29-
files: cabal2json.wasm
29+
files: cabal2json.opt.wasm
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/result
55
/cabal2json.min.js
66
/cabal2json.wasm
7+
/cabal2json.opt.wasm

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
all:
2+
nix shell -c wasm32-wasi-cabal update
23
nix shell -c wasm32-wasi-cabal install --installdir=. --install-method=copy --overwrite-policy=always
4+
nix shell -c wasm-opt -O cabal2json.wasm -o cabal2json.opt.wasm

cabal.project.freeze

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
active-repositories: hackage.haskell.org:merge, head.hackage.ghc.haskell.org:override
2+
constraints: any.Cabal ==3.10.1.0,
3+
any.Cabal-syntax ==3.10.1.0,
4+
any.OneTuple ==0.4.1.1,
5+
any.QuickCheck ==2.14.3,
6+
QuickCheck -old-random +templatehaskell,
7+
any.StateVar ==1.2.2,
8+
any.aeson ==2.1.2.1,
9+
aeson -cffi +ordered-keymap,
10+
any.array ==0.5.5.0,
11+
any.assoc ==1.1,
12+
assoc +tagged,
13+
any.attoparsec ==0.14.4,
14+
attoparsec -developer,
15+
any.base ==4.18.0.0,
16+
any.base-compat ==0.13.0,
17+
any.base-compat-batteries ==0.13.0,
18+
any.base-orphans ==0.9.0,
19+
any.bifunctors ==5.6.1,
20+
bifunctors +tagged,
21+
any.binary ==0.8.9.1,
22+
any.bytestring ==0.11.4.0,
23+
any.comonad ==5.0.8,
24+
comonad +containers +distributive +indexed-traversable,
25+
any.containers ==0.6.7,
26+
any.contravariant ==1.5.5,
27+
contravariant +semigroups +statevar +tagged,
28+
any.data-fix ==0.3.2,
29+
any.deepseq ==1.4.8.1,
30+
any.directory ==1.3.8.1,
31+
any.distributive ==0.6.2.1,
32+
distributive +semigroups +tagged,
33+
any.dlist ==1.0,
34+
dlist -werror,
35+
any.exceptions ==0.10.7,
36+
any.filepath ==1.4.100.1,
37+
any.generically ==0.1.1,
38+
any.ghc-bignum ==1.3,
39+
any.ghc-boot-th ==9.6.2.20230523,
40+
any.ghc-prim ==0.10.0,
41+
any.hashable ==1.4.2.0,
42+
hashable +integer-gmp -random-initial-seed,
43+
any.indexed-traversable ==0.1.2.1,
44+
any.indexed-traversable-instances ==0.1.1.2,
45+
any.integer-logarithms ==1.0.3.1,
46+
integer-logarithms -check-bounds +integer-gmp,
47+
any.mtl ==2.3.1,
48+
any.parsec ==3.1.16.1,
49+
any.pretty ==1.1.3.6,
50+
any.primitive ==0.8.0.0,
51+
any.process ==1.6.17.0,
52+
any.random ==1.2.1.1,
53+
any.rts ==1.0.2,
54+
any.scientific ==0.3.7.0,
55+
scientific -bytestring-builder -integer-simple,
56+
any.semialign ==1.3,
57+
semialign +semigroupoids,
58+
any.semigroupoids ==6.0.0.1,
59+
semigroupoids +comonad +containers +contravariant +distributive +tagged +unordered-containers,
60+
any.splitmix ==0.1.0.4,
61+
splitmix -optimised-mixer,
62+
any.stm ==2.5.1.0,
63+
any.strict ==0.5,
64+
any.tagged ==0.8.7,
65+
tagged +deepseq +transformers,
66+
any.template-haskell ==2.20.0.0,
67+
any.text ==2.0.2,
68+
any.text-short ==0.1.5,
69+
text-short -asserts,
70+
any.th-abstraction ==0.5.0.0,
71+
any.these ==1.2,
72+
any.time ==1.12.2,
73+
any.time-compat ==1.9.6.1,
74+
time-compat -old-locale,
75+
any.transformers ==0.6.1.0,
76+
any.transformers-compat ==0.7.2,
77+
transformers-compat -five +five-three -four +generic-deriving +mtl -three -two,
78+
any.unix ==2.8.1.0,
79+
any.unordered-containers ==0.2.19.1,
80+
unordered-containers -debug,
81+
any.uuid-types ==1.0.5,
82+
any.vector ==0.13.0.0,
83+
vector +boundschecks -internalchecks -unsafechecks -wall,
84+
any.vector-stream ==0.1.0.0,
85+
any.witherable ==0.4.2
86+
index-state: hackage.haskell.org 2023-06-26T10:42:49Z, head.hackage.ghc.haskell.org 2023-06-24T22:31:11Z

0 commit comments

Comments
 (0)