Skip to content

Update CHANGELOG.

Update CHANGELOG. #278

Workflow file for this run

name: Build & Test Action
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
# Test and check build errors
test-build:
name: Run tests and build Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run all
- name: Run action to check no exceptions are thrown
uses: ./
with:
release: '10.3-2021.07'
path-env-var: ARM_NONE_EABI_GCC_PATH
# Check Action env var path
test-exports:
name: Test path output and env var
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Ensure the compiler is not present
run: '! arm-none-eabi-gcc --version'
- name: Set up GCC Arm Compiler with environmental variable
id: action-under-test-id
uses: ./
with:
release: '7-2017-q4'
path-env-var: ARM_NONE_EABI_GCC_PATH
- name: Print out version
run: arm-none-eabi-gcc --version
- name: Check the version matches
run: arm-none-eabi-gcc --version | grep -q 7-2017-q4
- name: Print path via env var and output
run: echo "output -> ${{ steps.action-under-test-id.outputs.path }} \n env var -> $ARM_NONE_EABI_GCC_PATH"
- name: Check env var path is correct
run: echo "Path $ARM_NONE_EABI_GCC_PATH" | grep -q /home/runner/gcc-arm-none-eabi-7.2017.4-linux-x64/gcc-arm-none-eabi-7-2017-q4-major/bin
- name: Check output path is correct
run: echo "Path ${{ steps.action-under-test-id.outputs.path }}" | grep -q /home/runner/gcc-arm-none-eabi-7.2017.4-linux-x64/gcc-arm-none-eabi-7-2017-q4-major/bin
# Run Action without inputs
test-default:
name: Test default options
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Ensure the compiler is not present
run: '! arm-none-eabi-gcc --version'
- name: Set up GCC Arm Compiler with default options
uses: ./
id: action-under-test-id
- name: Print out version
run: arm-none-eabi-gcc --version
- name: Check the version matches
run: arm-none-eabi-gcc --version | grep -qi 13.3.Rel1
- name: Check output path is correct
run: echo "${{ steps.action-under-test-id.outputs.path }}" | grep -q /home/runner/gcc-arm-none-eabi-13.3.1-linux-x64/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin