Commit 79b5533 tudor
committed
1 parent 29533e8 commit 79b5533 Copy full SHA for 79b5533
File tree 1 file changed +64
-0
lines changed
1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test Docker on GitHub Actions
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ message :
7
+ description : ' Build as described in README.md'
8
+ push :
9
+ branches :
10
+ - ' tudor/feat-docker-action'
11
+
12
+ jobs :
13
+ build_readme :
14
+ runs-on : ubuntu-latest
15
+ services :
16
+ docker :
17
+ image : docker:dind
18
+ options : --privileged
19
+ volumes :
20
+ - shared-volume:/wasm_out
21
+ container :
22
+ image : node:20
23
+ volumes :
24
+ - shared-volume:/wasm_out
25
+ steps :
26
+ - name : Install Docker
27
+ run : |
28
+ apt-get update
29
+ apt-get install -y docker.io
30
+
31
+ - name : List wasm output dir
32
+ run : |
33
+ ls /wasm_out
34
+
35
+ - name : Clear wasm output dir
36
+ run : |
37
+ rm -rf /wasm_out/*
38
+
39
+ - name : Install pnpm
40
+ uses : pnpm/action-setup@v4
41
+ with :
42
+ version : 9
43
+
44
+ - name : Checkout
45
+ uses : actions/checkout@v4
46
+
47
+ - name : Build wasm
48
+ env :
49
+ VOL : shared-volume
50
+ run : |
51
+ pnpm wasm:build
52
+
53
+ - name : List wasm output dir after build
54
+ run : |
55
+ ls /wasm_out
56
+
57
+ - name : Move release wasm files to pglite dir
58
+ run : |
59
+ mv /wasm_out/release ./packages/pglite/
60
+
61
+ - name : Build ts
62
+ run : |
63
+ pnpm install
64
+ pnpm ts:build
You can’t perform that action at this time.
0 commit comments