Skip to content

Commit

Permalink
Merge pull request #91 from NipunaMadhushan/fix-isolated-methods
Browse files Browse the repository at this point in the history
Make external functions isolated
  • Loading branch information
NipunaMadhushan authored Aug 2, 2024
2 parents 783e021 + 0c54a06 commit 3e9a47e
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 59 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Daily build

on:
schedule:
- cron: '30 18 * * *'
workflow_dispatch:

jobs:
ubuntu-build:
name: Build on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew build test --stacktrace --console=plain
- name: Generate Codecov Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

windows-build:
name: Build on Windows
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
run: |
./gradlew.bat build -x test --stacktrace --console=plain
./gradlew.bat test --stacktrace --console=plain
ubuntu-build-without-native-tests:
name: Build on Ubuntu without native tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
packageUser: ${{ github.actor }}
packagePAT: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build -x observe-ballerina-tests:test --stacktrace --console=plain
6 changes: 4 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
run: |
./gradlew build test --stacktrace --console=plain
- name: Generate Codecov Report
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

windows-build:
name: Build on Windows
Expand All @@ -32,7 +34,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 17.0.7
- name: Build with Gradle
env:
Expand Down
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "observe"
version = "1.2.3"
distribution = "2201.8.0"
version = "1.3.0"
distribution = "2201.10.0"
export = ["observe", "observe.mockextension" ]

[platform.java17]
graalvmCompatible = true

[[platform.java17.dependency]]
path = "../native/build/libs/observe-native-1.2.3.jar"
path = "../native/build/libs/observe-native-1.3.0-SNAPSHOT.jar"
groupId = "ballerina"
artifactId = "observe"

Expand Down
4 changes: 2 additions & 2 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.8.0"
distribution-version = "2201.10.0-20240802-124900-0b8d2ff7"

[[package]]
org = "ballerina"
Expand All @@ -18,7 +18,7 @@ modules = [
[[package]]
org = "ballerina"
name = "observe"
version = "1.2.3"
version = "1.3.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
Expand Down
Loading

0 comments on commit 3e9a47e

Please sign in to comment.