You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,19 @@ A GitHub Action which sets up a PureScript toolchain for CI. Contains the follow
4
4
5
5
- The [PureScript compiler](https://github.com/purescript/purescript)
6
6
- The [Spago package manager and build tool](https://github.com/purescript/spago)
7
+
- The [Zephyr dead code elimination tool](https://github.com/coot/zephyr)
8
+
9
+
This action is designed to support tools with static binaries. Your PureScript project may also depend on tooling and libraries provided by the NPM ecosystem, in which case you will also want to use the [setup-node](https://github.com/actions/setup-node) action.
10
+
11
+
> Note: While this action does work, it is currently under development and the API may change. Feel free to experiment using it, but it won't be stable until a v1 release when the PureScript Contributor organization switches to use it.
7
12
8
13
## Usage
9
14
10
15
See the [action.yml](action.yml) file for all possible inputs and outputs.
11
16
12
17
### Basic
13
18
14
-
Get the latest versions of PureScriptand Spago in the environment:
19
+
Get the latest versions of PureScript, Spago, and Zephyr in the environment:
15
20
16
21
```yaml
17
22
steps:
@@ -22,7 +27,7 @@ steps:
22
27
23
28
### Use Specific Versions
24
29
25
-
Use specific versions of PureScript and/or Spago by supplying a valid semantic version (only exact versions currently supported):
30
+
Use specific versions of any tool by supplying a valid semantic version (only exact versions currently supported):
26
31
27
32
```yaml
28
33
steps:
@@ -31,5 +36,19 @@ steps:
31
36
with:
32
37
purescript-version: "0.13.8"
33
38
spago-version: "0.15.3"
39
+
zephyr-version: "0.3.2"
40
+
- run: spago build
41
+
```
42
+
43
+
### Cache Library Dependencies (Coming Soon)
44
+
45
+
Automatically build and cache library dependencies between workflow runs by supplying a path to a Spago config file:
0 commit comments