File tree 1 file changed +15
-12
lines changed
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 16
16
17
17
jobs :
18
18
build :
19
- runs-on : ubuntu-22.04
19
+ strategy :
20
+ fail-fast : false
21
+ matrix :
22
+ os : [ubuntu-22.04, windows-2022, macos-latest]
23
+ runs-on : ${{ matrix.os }}
20
24
steps :
25
+ - name : Configure sysctl limits
26
+ if : matrix.os == 'ubuntu-22.04'
27
+ run : |
28
+ sudo swapoff -a
29
+ sudo sysctl -w vm.swappiness=1
30
+ sudo sysctl -w fs.file-max=262144
31
+ sudo sysctl -w vm.max_map_count=262144
32
+
21
33
- name : Checkout repository
22
34
uses : actions/checkout@v3
23
35
24
- - uses : actions/cache@v3
25
- with :
26
- path : |
27
- ~/.gradle/caches
28
- ~/.gradle/wrapper
29
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
30
- restore-keys : |
31
- ${{ runner.os }}-gradle-
32
-
33
36
- name : Set up JDK
34
37
uses : actions/setup-java@v3
35
38
with :
@@ -49,11 +52,11 @@ jobs:
49
52
arguments : check
50
53
51
54
- name : GitHub release
52
- if : contains('refs/heads/master refs/heads/6.x refs/heads/ 7.x', github.ref)
55
+ if : contains('refs/heads/master refs/heads/7.x', github.ref) && matrix.os == 'ubuntu-22.04'
53
56
run : |
54
57
version=$(cat gradle.properties | grep -e "^version *=" | awk -F" *= *" '{print $NF}')
55
58
is_snapshot=$(echo ${version} | grep -e "-SNAPSHOT$" | wc -l)
56
59
if [ "$is_snapshot" == "0" ]; then
57
60
echo ${{ github.token }} | gh auth login --with-token
58
- gh release create ${version} ./build/distributions/*.zip -n "${version}"
61
+ gh release create ${version} ./build/distributions/*.zip -n "${version}"
59
62
fi
You can’t perform that action at this time.
0 commit comments