Skip to content

Add custom installer url support #73

Add custom installer url support

Add custom installer url support #73

Workflow file for this run

name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
- master
jobs:
tests:
name: ${{ matrix.version }} on ${{ matrix.os.name }} ${{ matrix.cache && '(cache)' || '' }}
runs-on: ${{ matrix.os.name }}
defaults:
run:
shell: bash
strategy:
fail-fast: true
matrix:
os:
# - { name: macos-latest, url: "${{ secrets.SDK_BETA_MACOS }}" }
# - { name: ubuntu-latest, url: "${{ secrets.SDK_BETA_LINUX }}" }
# - { name: windows-latest, url: "${{ secrets.SDK_BETA_WINDOWS }}" }
- { name: macos-latest, url: "" }
- { name: ubuntu-latest, url: true }
- { name: windows-latest, url: "" }
version:
- latest # actual version
- 2.0.1 # specified version
cache: [true, false]
steps:
- uses: actions/checkout@v3
- name: install SDK
id: installer
uses: ./
with:
version: ${{ matrix.version }}
cache: ${{ matrix.cache }}
custom-url: ${{ matrix.os.url && secrets.SDK_BETA_LINUX || '' }}
- name: outputs
run: |
[ -d "${{ steps.installer.outputs.root }}" ] || (echo "::error ::Missing output SDK root" && exit 1)
# [ -z "${{ steps.installer.outputs.version }}" ] || (echo "::error ::Missing output version" && exit 1)
echo "version: ${{ steps.installer.outputs.version }}"
- name: ENV
run: |
[ -d "$PLAYDATE_SDK_PATH" ] || (echo "::error ::Missing output PLAYDATE_SDK_PATH" && exit 1)
- name: equality
run: |
[ "$PLAYDATE_SDK_PATH" == "${{ steps.installer.outputs.root }}" ] || (echo "::error ::Env not eq output: PLAYDATE_SDK_PATH" && exit 1)
- name: $PATH
run: |
which pdc || (echo "::error ::Missing pdc from PATH." && exit 1)
- name: arm-none-eabi-gcc
run: |
which arm-none-eabi-gcc || (echo "::error ::Missing arm-none-eabi-gcc from PATH." && exit 1)