|
1 | | -name: example-array-t41 |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - paths-ignore: |
6 | | - - 'docs/**' |
7 | | - - '**.md' |
8 | | - - '.github/workflows/ubuntu_x64_cmake.yml' |
9 | | - |
10 | | - pull_request: |
11 | | - branches: [ master ] |
12 | | - |
13 | | -jobs: |
14 | | - build: |
15 | | - |
16 | | - runs-on: ubuntu-latest |
17 | | - |
18 | | - steps: |
19 | | - - uses: actions/checkout@v2 |
20 | | - |
21 | | - - uses: actions/checkout@v2 |
22 | | - with: |
23 | | - repository: newdigate/teensy-cmake-macros |
24 | | - path: deps/teensy-cmake-macros |
25 | | - |
26 | | - - uses: actions/checkout@v2 |
27 | | - with: |
28 | | - repository: PaulStoffregen/cores.git |
29 | | - path: deps/cores |
30 | | - fetch-depth: 1 |
31 | | - ref: master |
32 | | - |
33 | | - - uses: actions/checkout@v2 |
34 | | - with: |
35 | | - repository: PaulStoffregen/Audio.git |
36 | | - path: deps/Audio |
37 | | - fetch-depth: 1 |
38 | | - ref: master |
39 | | - |
40 | | - - uses: actions/checkout@v2 |
41 | | - with: |
42 | | - repository: PaulStoffregen/SD.git |
43 | | - path: deps/SD |
44 | | - fetch-depth: 1 |
45 | | - ref: Juse_Use_SdFat |
46 | | - |
47 | | - - uses: actions/checkout@v2 |
48 | | - with: |
49 | | - repository: PaulStoffregen/Wire.git |
50 | | - path: deps/Wire |
51 | | - fetch-depth: 1 |
52 | | - ref: master |
53 | | - |
54 | | - - uses: actions/checkout@v2 |
55 | | - with: |
56 | | - repository: PaulStoffregen/SPI.git |
57 | | - path: deps/SPI |
58 | | - fetch-depth: 1 |
59 | | - ref: master |
60 | | - |
61 | | - - uses: actions/checkout@v2 |
62 | | - with: |
63 | | - repository: PaulStoffregen/SerialFlash.git |
64 | | - path: deps/SerialFlash |
65 | | - fetch-depth: 1 |
66 | | - ref: master |
67 | | - |
68 | | - - uses: actions/checkout@v2 |
69 | | - with: |
70 | | - repository: PaulStoffregen/arm_math.git |
71 | | - path: deps/arm_math |
72 | | - ref: master |
73 | | - |
74 | | - - uses: actions/checkout@v2 |
75 | | - with: |
76 | | - repository: PaulStoffregen/SdFat.git |
77 | | - path: deps/SdFat |
78 | | - fetch-depth: 1 |
79 | | - ref: master |
80 | | - |
81 | | - - uses: actions/checkout@v2 |
82 | | - with: |
83 | | - repository: PaulStoffregen/LittleFS.git |
84 | | - path: deps/LittleFS |
85 | | - fetch-depth: 1 |
86 | | - ref: main |
87 | | - |
88 | | - - name: download toolchain |
89 | | - run: | |
90 | | - 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 |
91 | | - mkdir -p /opt |
92 | | - cd /opt |
93 | | - tar xjf /tmp/gcc-arm-none-eabi.tar.bz2 |
94 | | - rm /tmp/gcc-arm-none-eabi.tar.bz2 |
95 | | - echo "/opt/gcc-arm-none-eabi-9-2019-q4-major/bin" |
96 | | -
|
97 | | - - name: install teensy-cmake-macros |
98 | | - run: cd deps/teensy-cmake-macros && mkdir cmake-build-debug && cd cmake-build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install |
99 | | - |
100 | | - - name: build |
101 | | - run: mkdir cmake-build-debug && cd cmake-build-debug && cmake .. -DCMAKE_TOOLCHAIN_FILE:FILEPATH="${{github.workspace}}/cmake/toolchains/teensy41.cmake" && make array_hex |
102 | | - |
103 | | - - uses: actions/upload-artifact@v2 |
104 | | - with: |
105 | | - name: hex file |
106 | | - path: examples/array/cmake-build-debug/array.hex |
| 1 | +name: example-array-t41 |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths-ignore: |
| 6 | + - 'docs/**' |
| 7 | + - '**.md' |
| 8 | + - '.github/workflows/ubuntu_x64_cmake.yml' |
| 9 | + |
| 10 | + pull_request: |
| 11 | + branches: [ master ] |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + |
| 16 | + runs-on: ubuntu-latest |
| 17 | + |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v2 |
| 20 | + |
| 21 | + - uses: actions/checkout@v2 |
| 22 | + with: |
| 23 | + repository: newdigate/teensy-cmake-macros |
| 24 | + path: deps/teensy-cmake-macros |
| 25 | + |
| 26 | + - uses: actions/checkout@v2 |
| 27 | + with: |
| 28 | + repository: PaulStoffregen/cores.git |
| 29 | + path: deps/cores |
| 30 | + fetch-depth: 1 |
| 31 | + ref: master |
| 32 | + |
| 33 | + - uses: actions/checkout@v2 |
| 34 | + with: |
| 35 | + repository: PaulStoffregen/Audio.git |
| 36 | + path: deps/Audio |
| 37 | + fetch-depth: 1 |
| 38 | + ref: master |
| 39 | + |
| 40 | + - uses: actions/checkout@v2 |
| 41 | + with: |
| 42 | + repository: PaulStoffregen/SD.git |
| 43 | + path: deps/SD |
| 44 | + fetch-depth: 1 |
| 45 | + ref: Juse_Use_SdFat |
| 46 | + |
| 47 | + - uses: actions/checkout@v2 |
| 48 | + with: |
| 49 | + repository: PaulStoffregen/Wire.git |
| 50 | + path: deps/Wire |
| 51 | + fetch-depth: 1 |
| 52 | + ref: master |
| 53 | + |
| 54 | + - uses: actions/checkout@v2 |
| 55 | + with: |
| 56 | + repository: PaulStoffregen/SPI.git |
| 57 | + path: deps/SPI |
| 58 | + fetch-depth: 1 |
| 59 | + ref: master |
| 60 | + |
| 61 | + - uses: actions/checkout@v2 |
| 62 | + with: |
| 63 | + repository: PaulStoffregen/SerialFlash.git |
| 64 | + path: deps/SerialFlash |
| 65 | + fetch-depth: 1 |
| 66 | + ref: master |
| 67 | + |
| 68 | + - uses: actions/checkout@v2 |
| 69 | + with: |
| 70 | + repository: PaulStoffregen/arm_math.git |
| 71 | + path: deps/arm_math |
| 72 | + ref: master |
| 73 | + |
| 74 | + - uses: actions/checkout@v2 |
| 75 | + with: |
| 76 | + repository: PaulStoffregen/SdFat.git |
| 77 | + path: deps/SdFat |
| 78 | + fetch-depth: 1 |
| 79 | + ref: master |
| 80 | + |
| 81 | + - uses: actions/checkout@v2 |
| 82 | + with: |
| 83 | + repository: PaulStoffregen/LittleFS.git |
| 84 | + path: deps/LittleFS |
| 85 | + fetch-depth: 1 |
| 86 | + ref: main |
| 87 | + |
| 88 | + - name: download toolchain |
| 89 | + run: | |
| 90 | + 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 |
| 91 | + mkdir -p /opt |
| 92 | + cd /opt |
| 93 | + tar xjf /tmp/gcc-arm-none-eabi.tar.bz2 |
| 94 | + rm /tmp/gcc-arm-none-eabi.tar.bz2 |
| 95 | + echo "/opt/gcc-arm-none-eabi-9-2019-q4-major/bin" |
| 96 | +
|
| 97 | + - name: install teensy-cmake-macros |
| 98 | + run: cd deps/teensy-cmake-macros && mkdir cmake-build-debug && cd cmake-build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && sudo make install |
| 99 | + |
| 100 | + - name: build |
| 101 | + run: mkdir cmake-build-debug && cd cmake-build-debug && cmake .. -DCMAKE_TOOLCHAIN_FILE:FILEPATH="${{github.workspace}}/cmake/toolchains/teensy41.cmake" && make array_hex |
| 102 | + |
| 103 | + - uses: actions/upload-artifact@v4 |
| 104 | + with: |
| 105 | + name: hex file |
| 106 | + path: examples/array/cmake-build-debug/array.hex |
0 commit comments