Skip to content

Commit 1f53276

Browse files
committed
expand testing to macos and windows
1 parent 0624c80 commit 1f53276

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/ci.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,23 @@ env:
1616

1717
jobs:
1818
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 }}
2024
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+
2133
- name: Checkout repository
2234
uses: actions/checkout@v3
2335

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-
3336
- name: Set up JDK
3437
uses: actions/setup-java@v3
3538
with:
@@ -49,11 +52,11 @@ jobs:
4952
arguments: check
5053

5154
- 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'
5356
run: |
5457
version=$(cat gradle.properties | grep -e "^version *=" | awk -F" *= *" '{print $NF}')
5558
is_snapshot=$(echo ${version} | grep -e "-SNAPSHOT$" | wc -l)
5659
if [ "$is_snapshot" == "0" ]; then
5760
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}"
5962
fi

0 commit comments

Comments
 (0)