Skip to content

Commit 19956f0

Browse files
authored
Merge pull request hathach#1539 from hathach/improve-ci
Improve ci
2 parents 39069cf + 158b3d7 commit 19956f0

File tree

30 files changed

+85
-87
lines changed

30 files changed

+85
-87
lines changed

.github/workflows/build_arm.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- 'xmc4000'
6666
steps:
6767
- name: Setup Python
68-
uses: actions/setup-python@v2
68+
uses: actions/setup-python@v3
6969

7070
- name: Checkout TinyUSB
7171
uses: actions/checkout@v3
@@ -79,32 +79,17 @@ jobs:
7979
repository: hathach/linkermap
8080
path: linkermap
8181

82-
- name: Checkout pico-sdk
82+
- name: Checkout pico-sdk for rp2040
8383
if: matrix.family == 'rp2040'
8484
run: |
8585
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
8686
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
8787
git submodule update --init hw/mcu/raspberry_pi/Pico-PIO-USB
8888
89-
- name: Set Toolchain URL
90-
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
91-
92-
- name: Cache Toolchain
93-
uses: actions/cache@v2
94-
id: cache-toolchain
89+
- name: Install ARM GCC
90+
uses: carlosperate/arm-none-eabi-gcc-action@v1
9591
with:
96-
path: ~/cache/
97-
key: ${{ runner.os }}-21-03-04-${{ env.TOOLCHAIN_URL }}
98-
99-
- name: Install Toolchain
100-
if: steps.cache-toolchain.outputs.cache-hit != 'true'
101-
run: |
102-
mkdir -p ~/cache/toolchain
103-
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
104-
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
105-
106-
- name: Set Toolchain Path
107-
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
92+
release: '11.2-2022.02'
10893

10994
- name: Build
11095
run: python3 tools/build_family.py ${{ matrix.family }}
@@ -135,33 +120,18 @@ jobs:
135120

136121
steps:
137122
- name: Setup Python
138-
uses: actions/setup-python@v2
123+
uses: actions/setup-python@v3
139124

140125
- name: Checkout TinyUSB
141126
uses: actions/checkout@v3
142127

143128
- name: Checkout common submodules in lib
144129
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
145130

146-
- name: Set Toolchain URL
147-
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
148-
149-
- name: Cache Toolchain
150-
uses: actions/cache@v2
151-
id: cache-toolchain
131+
- name: Install ARM GCC
132+
uses: carlosperate/arm-none-eabi-gcc-action@v1
152133
with:
153-
path: ~/cache/
154-
key: ${{ runner.os }}-21-03-04-${{ env.TOOLCHAIN_URL }}
155-
156-
- name: Install Toolchain
157-
if: steps.cache-toolchain.outputs.cache-hit != 'true'
158-
run: |
159-
mkdir -p ~/cache/toolchain
160-
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
161-
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
162-
163-
- name: Set Toolchain Path
164-
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
134+
release: '11.2-2022.02'
165135

166136
- name: Build
167137
run: python3 tools/build_board.py ${{ matrix.example }}

examples/device/cdc_msc_freertos/.skip.MCU_F1C100S

Whitespace-only changes.
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
mcu:CXD56
2-
mcu:MSP430x5xx
3-
mcu:SAMD11
4-
mcu:VALENTYUSB_EPTRI
2+
mcu:F1C100S
3+
mcu:GD32VF103
54
mcu:MKL25ZXX
5+
mcu:MSP430x5xx
66
mcu:RP2040
7+
mcu:SAMD11
78
mcu:SAMX7X
8-
mcu:GD32VF103
9-
family:broadcom_64bit
10-
family:broadcom_32bit
9+
mcu:VALENTYUSB_EPTRI
10+
family:broadcom_32bit
11+
family:broadcom_64bit

examples/device/hid_composite_freertos/.skip.MCU_F1C100S

Whitespace-only changes.
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
mcu:CXD56
2+
mcu:F1C100S
3+
mcu:GD32VF103
4+
mcu:MKL25ZXX
25
mcu:MSP430x5xx
3-
mcu:SAMD11
4-
mcu:VALENTYUSB_EPTRI
56
mcu:RP2040
7+
mcu:SAMD11
68
mcu:SAMX7X
7-
mcu:GD32VF103
8-
family:broadcom_64bit
9-
family:broadcom_32bit
9+
mcu:VALENTYUSB_EPTRI
10+
family:broadcom_32bit
11+
family:broadcom_64bit
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
mcu:MSP430x5xx
2-
mcu:SAMD11
2+
mcu:NUC121
3+
mcu:SAMD11

hw/bsp/d5035_01/same51j19a_flash.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,5 @@ SECTIONS
160160

161161
. = ALIGN(4);
162162
_end = . ;
163+
end = .;
163164
}

hw/bsp/ea4088qs/ea4088qs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
void USB_IRQHandler(void)
3434
{
3535
#if CFG_TUD_ENABLED
36-
tuh_int_handler(0);
36+
tud_int_handler(0);
3737
#endif
3838

3939
#if CFG_TUH_ENABLED
40-
tud_int_handler(0);
40+
tuh_int_handler(0);
4141
#endif
4242
}
4343

hw/bsp/frdm_k32l2b/board.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CFLAGS += \
99
-DCFG_TUSB_MCU=OPT_MCU_K32L2BXX
1010

1111
# mcu driver cause following warnings
12-
CFLAGS += -Wno-error=unused-parameter
12+
CFLAGS += -Wno-error=unused-parameter -Wno-error=redundant-decls
1313

1414
MCU_DIR = $(SDK_DIR)/devices/K32L2B31A
1515

hw/bsp/frdm_kl25z/board.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ LDFLAGS += \
1414
-Wl,--defsym,__heap_size__=0
1515

1616
# mcu driver cause following warnings
17-
CFLAGS += -Wno-error=unused-parameter -Wno-error=format
17+
CFLAGS += -Wno-error=unused-parameter -Wno-error=format -Wno-error=redundant-decls
1818

1919
MCU_DIR = $(SDK_DIR)/devices/MKL25Z4
2020

0 commit comments

Comments
 (0)