Get Playdate SDK
ActionsTags
(2)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,versionwill be ignored.gcc-trueto installgcc-arm-none-eabitoolchain,falseto don't. Default istrue. (linux & Windows only. On macOS, the sdk installer installs the toolchain itself.)root-win-path-trueto 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 PATHNote 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_PATHfor powershell and normaloutputs.rootin 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_PATHandoutputs.root.
Get Playdate SDK is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.