Skip to content

[FW-94] Changes in ADC + included tests #400

[FW-94] Changes in ADC + included tests

[FW-94] Changes in ADC + included tests #400

Workflow file for this run

name: Build and Tests CI
on:
push:
branches: ["main", "development"]
pull_request:
branches: ["main", "development"]
jobs:
build:
name: Build ST-LIB
strategy:
matrix:
build_type: [hardware,simulator]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: carlosperate/arm-none-eabi-gcc-action@v1
- run: arm-none-eabi-gcc --version
- name: Build
run: ./tools/build.sh ${{matrix.build_type}}
## the following is because of this known limitation
## https://github.com/actions/download-artifact?tab=readme-ov-file#limitations
- name: 'Tar files'
run: ./tools/tar_tests.sh ${{matrix.build_type}}
continue-on-error: true
- name: Upload test-binary
uses: actions/upload-artifact@v4
with:
name: stlib_test
path: test_files.tar
retention-days: 1
#this is because hardware build doesnot create the
# test executable
continue-on-error: true
Run-Tests:
name: Run Simulator tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download test binary compressed
uses: actions/download-artifact@v4
with:
name: stlib_test
- run: tar -xvf test_files.tar
- name: Run test
run: ./tools/run_sim_tests.sh