@greenlabs/ppx-spice 0.1.7-rc2 → 0.1.7-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,15 +77,52 @@ jobs:
|
|
|
77
77
|
path: src/ppx.exe
|
|
78
78
|
if-no-files-found: error
|
|
79
79
|
|
|
80
|
+
build_windows:
|
|
81
|
+
name: ${{ matrix.os }}
|
|
82
|
+
runs-on: ${{ matrix.os }}
|
|
83
|
+
defaults:
|
|
84
|
+
run:
|
|
85
|
+
working-directory: src
|
|
86
|
+
strategy:
|
|
87
|
+
matrix:
|
|
88
|
+
os: [windows-latest]
|
|
89
|
+
ocaml-compiler:
|
|
90
|
+
- 4.12.1
|
|
91
|
+
|
|
92
|
+
steps:
|
|
93
|
+
- uses: actions/checkout@v2
|
|
94
|
+
|
|
95
|
+
- name: Use OCaml ${{ matrix.ocaml-compiler}}
|
|
96
|
+
uses: ocaml/setup-ocaml@v2
|
|
97
|
+
with:
|
|
98
|
+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
99
|
+
|
|
100
|
+
- name: Install deps
|
|
101
|
+
run: opam install . --deps-only --with-test
|
|
102
|
+
|
|
103
|
+
- name: Build
|
|
104
|
+
run: opam exec -- dune build
|
|
105
|
+
|
|
106
|
+
- name: Copy built PPX file
|
|
107
|
+
run: |
|
|
108
|
+
mv ./_build/default/bin/bin.exe ppx.exe
|
|
109
|
+
|
|
110
|
+
- name: (only on release) Upload artifacts ${{ matrix.os }}
|
|
111
|
+
uses: actions/upload-artifact@master
|
|
112
|
+
with:
|
|
113
|
+
name: ${{ matrix.os }}
|
|
114
|
+
path: src/ppx.exe
|
|
115
|
+
if-no-files-found: error
|
|
116
|
+
|
|
80
117
|
publish:
|
|
81
|
-
needs: [build_linux, build_macos]
|
|
118
|
+
needs: [build_linux, build_macos, build_windows]
|
|
82
119
|
name: (only on release) Publish
|
|
83
120
|
runs-on: ubuntu-latest
|
|
84
121
|
steps:
|
|
85
122
|
- uses: actions/checkout@v1
|
|
86
|
-
- uses: actions/setup-node@
|
|
123
|
+
- uses: actions/setup-node@v3
|
|
87
124
|
with:
|
|
88
|
-
node-version:
|
|
125
|
+
node-version: 16
|
|
89
126
|
registry-url: "https://registry.npmjs.org"
|
|
90
127
|
|
|
91
128
|
- name: Download linux artifacts
|
|
@@ -102,12 +139,20 @@ jobs:
|
|
|
102
139
|
name: macOS-latest
|
|
103
140
|
path: binaries/darwin
|
|
104
141
|
|
|
142
|
+
- name: Download windows artifacts
|
|
143
|
+
if: success()
|
|
144
|
+
uses: actions/download-artifact@master
|
|
145
|
+
with:
|
|
146
|
+
name: windows-latest
|
|
147
|
+
path: binaries/windows
|
|
148
|
+
|
|
105
149
|
- name: Move artifacts
|
|
106
150
|
if: success()
|
|
107
151
|
run: |
|
|
108
152
|
mkdir -p bin
|
|
109
153
|
mv binaries/linux/ppx.exe ppx-linux.exe
|
|
110
154
|
mv binaries/darwin/ppx.exe ppx-osx.exe
|
|
155
|
+
mv binaries/windows/ppx.exe ppx-windows.exe
|
|
111
156
|
|
|
112
157
|
- name: Publish
|
|
113
158
|
if: success()
|
|
@@ -83,15 +83,52 @@ jobs:
|
|
|
83
83
|
path: src/ppx.exe
|
|
84
84
|
if-no-files-found: error
|
|
85
85
|
|
|
86
|
+
build_windows:
|
|
87
|
+
name: ${{ matrix.os }}
|
|
88
|
+
runs-on: ${{ matrix.os }}
|
|
89
|
+
defaults:
|
|
90
|
+
run:
|
|
91
|
+
working-directory: src
|
|
92
|
+
strategy:
|
|
93
|
+
matrix:
|
|
94
|
+
os: [windows-latest]
|
|
95
|
+
ocaml-compiler:
|
|
96
|
+
- 4.12.1
|
|
97
|
+
|
|
98
|
+
steps:
|
|
99
|
+
- uses: actions/checkout@v2
|
|
100
|
+
|
|
101
|
+
- name: Use OCaml ${{ matrix.ocaml-compiler}}
|
|
102
|
+
uses: ocaml/setup-ocaml@v2
|
|
103
|
+
with:
|
|
104
|
+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
|
105
|
+
|
|
106
|
+
- name: Install deps
|
|
107
|
+
run: opam install . --deps-only --with-test
|
|
108
|
+
|
|
109
|
+
- name: Build
|
|
110
|
+
run: opam exec -- dune build
|
|
111
|
+
|
|
112
|
+
- name: Copy built PPX file
|
|
113
|
+
run: |
|
|
114
|
+
mv ./_build/default/bin/bin.exe ppx.exe
|
|
115
|
+
|
|
116
|
+
- name: (only on release) Upload artifacts ${{ matrix.os }}
|
|
117
|
+
uses: actions/upload-artifact@master
|
|
118
|
+
with:
|
|
119
|
+
name: ${{ matrix.os }}
|
|
120
|
+
path: src/ppx.exe
|
|
121
|
+
if-no-files-found: error
|
|
122
|
+
|
|
86
123
|
publish:
|
|
87
|
-
needs: [build_linux, build_macos]
|
|
124
|
+
needs: [build_linux, build_macos, build_windows]
|
|
88
125
|
name: (only on release) Publish
|
|
89
126
|
runs-on: ubuntu-latest
|
|
90
127
|
steps:
|
|
91
128
|
- uses: actions/checkout@v1
|
|
92
|
-
- uses: actions/setup-node@
|
|
129
|
+
- uses: actions/setup-node@v3
|
|
93
130
|
with:
|
|
94
|
-
node-version:
|
|
131
|
+
node-version: 16
|
|
95
132
|
registry-url: "https://registry.npmjs.org"
|
|
96
133
|
|
|
97
134
|
- name: Download linux artifacts
|
|
@@ -108,12 +145,20 @@ jobs:
|
|
|
108
145
|
name: macOS-latest
|
|
109
146
|
path: binaries/darwin
|
|
110
147
|
|
|
148
|
+
- name: Download windows artifacts
|
|
149
|
+
if: success()
|
|
150
|
+
uses: actions/download-artifact@master
|
|
151
|
+
with:
|
|
152
|
+
name: windows-latest
|
|
153
|
+
path: binaries/windows
|
|
154
|
+
|
|
111
155
|
- name: Move artifacts
|
|
112
156
|
if: success()
|
|
113
157
|
run: |
|
|
114
158
|
mkdir -p bin
|
|
115
159
|
mv binaries/linux/ppx.exe ppx-linux.exe
|
|
116
160
|
mv binaries/darwin/ppx.exe ppx-osx.exe
|
|
161
|
+
mv binaries/windows/ppx.exe ppx-windows.exe
|
|
117
162
|
|
|
118
163
|
- name: Change npm release version
|
|
119
164
|
if: success()
|
package/package.json
CHANGED
package/ppx-windows.exe
ADDED
|
Binary file
|