File tree 5 files changed +37
-4
lines changed
5 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 16
16
- ' 2.6'
17
17
- ' 2.7'
18
18
- ' 2.8'
19
+ - ' 2.9'
20
+ nightly : [false]
19
21
include :
20
- - {runs-on: ubuntu-18.04, tarantool: '1.10'}
21
- - {runs-on: ubuntu-16.04, tarantool: '1.10'}
22
+ - {runs-on: ubuntu-18.04, tarantool: '1.10', nightly: true }
23
+ - {runs-on: ubuntu-16.04, tarantool: '1.10', nightly: true }
22
24
runs-on : ${{ matrix.runs-on }}
23
25
env :
24
26
TARANTOOL_CACHE_KEY_SUFFIX : -${{ github.run_id }}
29
31
run : |
30
32
node <<'SCRIPT'
31
33
process.env["INPUT_TARANTOOL-VERSION"] = "${{ matrix.tarantool }}"
34
+ process.env["INPUT_NIGHTLY-BUILD"] = "${{ matrix.nightly }}"
32
35
require("./dist/main").latest_version().then(v => {
33
36
console.log(v)
34
37
console.log(`::set-output name=version::${v}`)
39
42
uses : ./
40
43
with :
41
44
tarantool-version : ${{ matrix.tarantool }}
45
+ nightly-build : ${{ matrix.nightly }}
42
46
43
47
- name : Check precise version
44
48
run : |
52
56
uses : ./
53
57
with :
54
58
tarantool-version : ${{ matrix.tarantool }}
59
+ nightly-build : ${{ matrix.nightly }}
60
+
61
+ - name : Verify install from cache
62
+ run : |
63
+ # Fail if tarantool is installed from apt-get
64
+ if dpkg -s tarantool; then
65
+ echo "Tarantool wasn't restored from cache"
66
+ exit 1
67
+ fi
55
68
56
69
- name : Check branch version
57
70
run : |
Original file line number Diff line number Diff line change @@ -24,6 +24,17 @@ steps:
24
24
- run : .rocks/bin/luatest -v
25
25
` ` `
26
26
27
+ ### Install a nightly build
28
+
29
+ ` ` ` yaml
30
+ steps :
31
+ - uses : actions/checkout@v2
32
+ - uses : tarantool/setup-tarantool@v1
33
+ with :
34
+ tarantool-version : ' 2.6'
35
+ nightly-build : true
36
+ ` ` `
37
+
27
38
# License
28
39
29
40
The scripts and documentation in this project are released under the [MIT License](LICENSE).
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ branding:
6
6
inputs :
7
7
tarantool-version :
8
8
description : Tarantool version
9
+ nightly-build :
10
+ description : Whether to install a nightly build
11
+ required : false
12
+ default : false
9
13
cache-key :
10
14
description : Deprecated. Custom key used for APT packages caching
11
15
required : false
Original file line number Diff line number Diff line change @@ -3400,7 +3400,9 @@ const exec = __importStar(__webpack_require__(986));
3400
3400
const io = __importStar(__webpack_require__(1));
3401
3401
const path = __importStar(__webpack_require__(622));
3402
3402
const fs = __importStar(__webpack_require__(747));
3403
- const baseUrl = 'https://download.tarantool.org/tarantool/release/' +
3403
+ const nightlyBuild = (core.getInput('nightly-build') || 'false').toUpperCase() === 'TRUE';
3404
+ const baseUrl = 'https://download.tarantool.org/tarantool/' +
3405
+ (nightlyBuild ? /** live **/ '' : 'release/') +
3404
3406
core.getInput('tarantool-version', { required: true });
3405
3407
async function capture(cmd, options) {
3406
3408
let output = '';
Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ import * as io from '@actions/io'
7
7
import * as path from 'path'
8
8
import * as fs from 'fs'
9
9
10
+ const nightlyBuild =
11
+ ( core . getInput ( 'nightly-build' ) || 'false' ) . toUpperCase ( ) === 'TRUE'
10
12
const baseUrl =
11
- 'https://download.tarantool.org/tarantool/release/' +
13
+ 'https://download.tarantool.org/tarantool/' +
14
+ ( nightlyBuild ? /** live **/ '' : 'release/' ) +
12
15
core . getInput ( 'tarantool-version' , { required : true } )
13
16
14
17
interface CaptureOptions {
You can’t perform that action at this time.
0 commit comments