Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration for gcc - optional choice to install gcc-arm-none-eabi toolchain #33

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
tests:
name: ${{ matrix.version }} on ${{ matrix.os }} ${{ matrix.cache && '(cache)' || '' }}
name: ${{ matrix.version }} on ${{ matrix.os }} ${{ matrix.cache && '(cache)' || '' }} ${{ matrix.cache && '+gcc' || '' }}
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -25,6 +25,7 @@ jobs:
- latest # actual version
- 2.4.1 # specified version
cache: [true, false]
gcc: [true, false]
steps:
- uses: actions/checkout@v4

Expand All @@ -34,6 +35,7 @@ jobs:
with:
version: ${{ matrix.version }}
cache: ${{ matrix.cache }}
gcc: ${{ matrix.gcc }}

- name: outputs
run: |
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ Also installs arm-gcc gnu toolchain.
## Parameters

- `version` - Specified version of the SDK. Optional. Default value is `latest`.
- `cache` - Cache installer. Default by `true`.
- `cache` - Cache installer. Default is `true`.
- `custom-url` - Custom URL to the SDK installer. Useful for beta versions. If set, `version` will be ignored.
- `gcc` - `true` to install `gcc-arm-none-eabi` toolchain, `false` to don't. Default is `true`.
(Linux & Windows only. On macOS, the sdk installer installs the toolchain itself.)


## Usage Example
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
default: "true"
description: Cache installer.
required: false
gcc:
default: "true"
description: Install gcc-arm-none-eabi toolchain
required: false
# path:
# default: default
# description: SDK installation path. Optional.
Expand Down Expand Up @@ -117,7 +121,7 @@ runs:
echo "$PWD/bin" >> $GITHUB_PATH

- name: install gnu-arm-gcc
if: runner.os == 'Linux'
if: runner.os == 'Linux' && inputs.gcc-arm != 'false'
shell: bash
run: |
sudo apt install -y gcc-arm-none-eabi
Expand All @@ -138,7 +142,7 @@ runs:
echo "$PLAYDATE_SDK_PATH_lOCAL/bin" >> $GITHUB_PATH

- name: install gnu-arm-gcc
if: runner.os == 'Windows'
if: runner.os == 'Windows' && inputs.gcc-arm != 'false'
shell: powershell
run: choco install --no-progress gcc-arm-embedded -y

Expand Down