diff options
-rw-r--r-- | .github/workflows/test.yml | 16 | ||||
-rwxr-xr-x | smoke_test.sh | 39 |
2 files changed, 37 insertions, 18 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07803faf..7b722abe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -82,3 +82,19 @@ jobs: | |||
82 | ./makedist dev | 82 | ./makedist dev |
83 | ./smoke_test.sh luarocks-dev.tar.gz | 83 | ./smoke_test.sh luarocks-dev.tar.gz |
84 | 84 | ||
85 | ############################################################################## | ||
86 | BinaryBuild: | ||
87 | runs-on: "ubuntu-latest" | ||
88 | steps: | ||
89 | - uses: actions/checkout@master | ||
90 | |||
91 | - uses: leafo/gh-actions-lua@v8.0.0 | ||
92 | with: | ||
93 | luaVersion: "5.4" | ||
94 | |||
95 | - name: Binary Build Smoke Test | ||
96 | run: | | ||
97 | ./configure | ||
98 | ./makedist dev | ||
99 | ./smoke_test.sh luarocks-dev.tar.gz binary | ||
100 | |||
diff --git a/smoke_test.sh b/smoke_test.sh index bb1a5984..86b85c51 100755 --- a/smoke_test.sh +++ b/smoke_test.sh | |||
@@ -7,12 +7,31 @@ mkdir smoketestdir | |||
7 | cp "$tarball" smoketestdir | 7 | cp "$tarball" smoketestdir |
8 | cd smoketestdir | 8 | cd smoketestdir |
9 | 9 | ||
10 | tar zxvpf "$(basename "$tarball")" | ||
11 | cd "$(basename "$tarball" .tar.gz)" | ||
12 | |||
13 | if [ "$2" = "binary" ] | ||
14 | then | ||
15 | ./configure --prefix=foobar | ||
16 | make binary | ||
17 | make install-binary | ||
18 | cd foobar | ||
19 | bin/luarocks | ||
20 | bin/luarocks install inspect | ||
21 | bin/luarocks show inspect | ||
22 | ( | ||
23 | eval $(bin/luarocks path) | ||
24 | lua -e 'print(assert(require("inspect")(_G)))' | ||
25 | ) | ||
26 | cd .. | ||
27 | rm -rf foobar | ||
28 | exit 0 | ||
29 | fi | ||
30 | |||
10 | ################################################################################ | 31 | ################################################################################ |
11 | # test installation with make install | 32 | # test installation with make install |
12 | ################################################################################ | 33 | ################################################################################ |
13 | 34 | ||
14 | tar zxvpf "$(basename "$tarball")" | ||
15 | cd "$(basename "$tarball" .tar.gz)" | ||
16 | ./configure --prefix=foobar | 35 | ./configure --prefix=foobar |
17 | make | 36 | make |
18 | make install | 37 | make install |
@@ -80,22 +99,6 @@ rm -rf foorock2 | |||
80 | 99 | ||
81 | ################################################################################ | 100 | ################################################################################ |
82 | 101 | ||
83 | if [ "$2" = "binary" ] | ||
84 | then | ||
85 | make binary | ||
86 | make install-binary | ||
87 | cd foobar | ||
88 | bin/luarocks | ||
89 | bin/luarocks install inspect | ||
90 | bin/luarocks show inspect | ||
91 | ( | ||
92 | eval $(bin/luarocks path) | ||
93 | lua -e 'print(assert(require("inspect")(_G)))' | ||
94 | ) | ||
95 | cd .. | ||
96 | rm -rf foobar | ||
97 | fi | ||
98 | |||
99 | if [ "$3" = "windows" ] | 102 | if [ "$3" = "windows" ] |
100 | then | 103 | then |
101 | make windows-binary | 104 | make windows-binary |