-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (66 loc) · 2.28 KB
/
push-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: ART Java Main
on:
push:
branches:
- main
jobs:
gradle-build:
strategy:
matrix:
os: [ ubuntu-latest, macos-11, windows-latest ]
jdk: [ 21 ]
tarantool: [ 2.8 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- if: runner.os == 'Windows'
uses: Vampire/setup-wsl@v1
with:
distribution: Debian
additional-packages:
aptitude
sudo
- if: runner.os == 'macOS'
name: Initialize the tarantool on OSX
run: brew install tarantool
- if: runner.os == 'Windows'
name: Initialize the tarantool on WSL
run: |
wsl bash -c "sudo apt-get -y install curl"
wsl bash -c "curl -L https://tarantool.io/KKkJBXq/release/${{ matrix.tarantool }}/installer.sh | bash"
wsl bash -c "sudo apt-get -y install tarantool"
- if: runner.os == 'Linux'
uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '${{ matrix.tarantool }}'
- if: runner.os == 'macOS' || runner.os == 'Linux'
name: Setup temporary directory on Unix based
run: echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV
- if: runner.os == 'Windows'
name: Setup temporary directory on WSL
run: wsl bash -c \"echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV\"
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build --max-workers 8 --parallel
gradle-publish:
strategy:
matrix:
os: [ ubuntu-latest ]
jdk: [ 21 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean publish --max-workers 8 --parallel -Ppublisher.username=${publisherUsername} -Ppublisher.password=${publisherPassword} -Pversion=main
env:
publisherUsername: ${{ secrets.PUBLISHER_USERNAME }}
publisherPassword: ${{ secrets.PUBLISHER_PASSWORD }}