Please note that this repository is no longer active. The code has been moved to ballerina-platform/setup-ballerina, which is now the official Ballerina repository for the setup-ballerina GitHub Action. Please update any references or links to the new repository location to ensure you are using the latest version of the action. Thank you for your cooperation in keeping up-to-date with the Ballerina community's latest developments.
This Github action installs Ballerina's build system and package manager command; the bal
command.
Input | Description | Required |
---|---|---|
version | Ballerina SwanLake Version | yes |
Note: This action is supported on all operating systems (ubuntu
, macos
, windows
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hasithaa/setup-ballerina@v1
name: Install Ballerina
with:
version: 2201.1.1
- run: bal version
- run: bal run hello.bal
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: hasithaa/setup-ballerina@v1
name: Install Ballerina
with:
version: 2201.1.1
- run: bal version
- run: bal run hello.bal
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: hasithaa/setup-ballerina@v1
name: Install Ballerina
with:
version: 2201.1.1
- run: bal version
- run: bal run hello.bal
The scripts and documentation in this project are released under the Apache License.