This GitHub Action delivers specified Playdate SDK.
Also installs arm-gcc gnu toolchain.
version
- Specified version of the SDK. Optional. Default value islatest
.cache
- Cache installer. Default istrue
.custom-url
- Custom URL to the SDK installer. Useful for beta versions. If set,version
will be ignored.gcc
-true
to installgcc-arm-none-eabi
toolchain,false
to don't. Default istrue
. (Linux & Windows only. On macOS, the sdk installer installs the toolchain itself.)root-win-path
-true
to convert path to windows path format. Only for win- workers. It changesoutputs.root
, but not$PLAYDATE_SDK_PATH
.
- macOS
- Linux
- Windows
- name: Install Playdate SDK
id: playdate
uses: pd-rs/get-playdate-sdk@0.4
with:
version: 2.5.0 # possible values: version `x.x.x` or `latest` by default
- name: usage
run: |
echo "SDK path env: $PLAYDATE_SDK_PATH"
echo "SDK root out: ${{ steps.playdate.outputs.root }}"
echo "SDK version: ${{ steps.playdate.outputs.version }}"
pdc --version # because SDK/bin already in PATH
Note that $PLAYDATE_SDK_PATH
and outputs.root
are set in POSIX format.
If you want to use it in powershell you should fix it using one of following solutions:
- enable
root-win-path
(see inputs) - fix the env for powershell from bash with:
So you'll get fixed
- if: runner.os == 'Windows' shell: bash run: | PLAYDATE_SDK_PATH=$(cygpath -w "$PLAYDATE_SDK_PATH") echo "PLAYDATE_SDK_PATH=$PLAYDATE_SDK_PATH" >> $GITHUB_ENV
$PLAYDATE_SDK_PATH
for powershell and normaloutputs.root
in POSIX - enable
root-win-path
(see inputs) and fix the env for powershell from bash with:So you'll get both paths fixed for powershell -- name: Install Playdate SDK id: playdate uses: pd-rs/get-playdate-sdk@0.4 with: root-win-path: true - run: echo "PLAYDATE_SDK_PATH=$PLAYDATE_SDK_PATH" >> $GITHUB_ENV env: PLAYDATE_SDK_PATH: ${{ steps.playdate.outputs.root }} if: runner.os == 'Windows' shell: bash
$PLAYDATE_SDK_PATH
andoutputs.root
.