You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MicroDexed/third-party/TeensyVariablePlayback/.github/workflows/teensy41_ex_array.yml

106 lines
2.7 KiB

name: example-array-t41
on:
push:
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/workflows/ubuntu_x64_cmake.yml'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: newdigate/teensy-cmake-macros
path: deps/teensy-cmake-macros
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/cores.git
path: deps/cores
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/Audio.git
path: deps/Audio
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/SD.git
path: deps/SD
fetch-depth: 1
ref: Juse_Use_SdFat
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/Wire.git
path: deps/Wire
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/SPI.git
path: deps/SPI
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/SerialFlash.git
path: deps/SerialFlash
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/arm_math.git
path: deps/arm_math
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/SdFat.git
path: deps/SdFat
fetch-depth: 1
ref: master
- uses: actions/checkout@v2
with:
repository: PaulStoffregen/LittleFS.git
path: deps/LittleFS
fetch-depth: 1
ref: main
- name: download toolchain
run: |
curl -L "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2" --output /tmp/gcc-arm-none-eabi.tar.bz2
mkdir -p /opt
cd /opt
tar xjf /tmp/gcc-arm-none-eabi.tar.bz2
rm /tmp/gcc-arm-none-eabi.tar.bz2
echo "/opt/gcc-arm-none-eabi-9-2019-q4-major/bin"
- name: install teensy-cmake-macros
run: cd deps/teensy-cmake-macros && mkdir cmake-build-debug && cd cmake-build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install
- name: build
run: mkdir cmake-build-debug && cd cmake-build-debug && cmake .. -DCMAKE_TOOLCHAIN_FILE:FILEPATH="${{github.workspace}}/cmake/toolchains/teensy41.cmake" && make array_hex
- uses: actions/upload-artifact@v2
with:
name: hex file
path: examples/array/cmake-build-debug/array.hex