Merge pull request #669 from xlight05/update-builder-image #774
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ballerina Azure Functions Build | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- master | |
- "automated/dependency_version_update" | |
- "automated/dependency_version_update_tmp" | |
jobs: | |
ubuntu-build: | |
name: Build on Ubuntu | |
runs-on: ubuntu-latest | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
version: '22.3.3' | |
java-version: '11' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
set-java-home: 'false' | |
- name: Build with Gradle | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew build -PnativeTest --no-daemon | |
- name: Generate Codecov Report | |
uses: codecov/codecov-action@v2 | |
windows-build: | |
name: Build on Windows | |
runs-on: windows-latest | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
version: '22.3.3' | |
java-version: '11' | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
set-java-home: 'false' | |
- name: Build with Gradle | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew.bat build -PnativeTest --no-daemon |