This action downloads and installs BSC from the B-Lang-org/BSC repo.
os- [Required] The operating system
version- The version of BSC (e.g.
2023.07) to download orlatestto download the latest passing commit on themainbranch - Default:
latest
- The version of BSC (e.g.
path- The directory where BSC should be installed, in a new subdirectory called
bsc - Default: the working directory (
./)
- The directory where BSC should be installed, in a new subdirectory called
debug- Whether to turn on additional debug logging
- Default:
${{ runner.debug }}
github_token- Personal access token for downloading from the public BSC repository
- Default:
${{ github.token }}
tag- The version tag of the installed BSC
commit- The commit hash of the installed BSC
uses: B-Lang-org/download-bsc@v1
with:
os: ${{ matrix.os }}
version: 2023.07
path: ../To access the outputs, assign the step an id that can then be referrenced:
- name: Download BSC
id: download
uses: B-Lang-org/download-bsc@v1
with:
os: ${{ matrix.os }}
version: latest
path: ../
- name: Build
run: |
echo Version tag: ${{ steps.download.outputs.tag }}
echo Version hash: ${{ steps.download.outputs.commit }}
export PATH=$PWD/../bsc/bin:$PATH
bsc -vAs shown in the above example, BSC is installed into a directory
called bsc below the specified path.