Skip to content

fix socketchannel open to make it compatible with android #54

fix socketchannel open to make it compatible with android

fix socketchannel open to make it compatible with android #54

Workflow file for this run

name: Test and Reports
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
types: [ opened, synchronize ]
jobs:
build:
runs-on: ubuntu-latest
environment:
name: dev
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
clean: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Grant permissions for user space ICMP
run: sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
- name: Build with Gradle
run: ./gradlew clean build --no-build-cache
- name: JVM unit Tests with Coverage Report
run: ./gradlew check
# tar the reports since its much faster uploading multiple files
- name: Tar Reports
if: always()
run: |
mkdir -p kanonproxy/build/reports/ &&
tar -czvf kanonproxy-reports.tar.gz -C kanonproxy/build reports
- name: Upload Reports
uses: actions/[email protected]
if: always()
with:
name: kanonproxy-reports
path: kanonproxy-reports.tar.gz
- name: Upload Lib Unit Tests Report to CodeCov
# https://github.com/codecov/codecov-action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: libunittests
files: ./kanonproxy/build/reports/jacoco/test/jacocoTestReport.xml