diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94a9f4a..073bc30 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -25,6 +25,7 @@ jobs: - latest # actual version - 2.4.1 # specified version cache: [true, false] + gcc: [true, false] steps: - uses: actions/checkout@v4 @@ -34,6 +35,7 @@ jobs: with: version: ${{ matrix.version }} cache: ${{ matrix.cache }} + gcc: ${{ matrix.gcc }} - name: outputs run: | diff --git a/README.md b/README.md index 1ce02b1..d3fad8e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 48c3ea0..70897d4 100644 --- a/action.yml +++ b/action.yml @@ -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. @@ -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 @@ -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