Skip to content

Commit 3a005e8

Browse files
committed
try to fix CI
1 parent 5b1a7c1 commit 3a005e8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/scheduled.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ name: rolling
1616
env:
1717
CARGO_TERM_COLOR: always
1818
ACC_RSS_LIBS: "/home/runner/work/a121-sys/a121-sys/staticlibs"
19+
LIBCLANG_PATH: "/usr/lib/llvm-14/lib"
1920

2021
jobs:
2122
nightly:
@@ -25,16 +26,32 @@ jobs:
2526
- uses: actions/checkout@v4
2627
with:
2728
submodules: true
29+
2830
- name: Install nightly
2931
uses: dtolnay/rust-toolchain@nightly
3032
with:
3133
targets: thumbv7em-none-eabihf
34+
components: rustfmt
35+
3236
- name: Install ARM toolchain
3337
uses: carlosperate/arm-none-eabi-gcc-action@v1
3438
with:
3539
release: '9-2020-q2'
40+
41+
- name: Install LLVM and Clang
42+
run: |
43+
sudo apt-get update
44+
sudo apt-get install -y llvm-14-dev libclang-14-dev clang-14
45+
3646
- name: Create lib directory
3747
run: mkdir -p "$ACC_RSS_LIBS"
48+
49+
- name: Setup ARM GCC paths
50+
run: |
51+
GCC_ARM_PATH=$(dirname $(dirname $(which arm-none-eabi-gcc)))
52+
echo "ARM_GCC_PATH=${GCC_ARM_PATH}" >> $GITHUB_ENV
53+
echo "CPATH=${GCC_ARM_PATH}/arm-none-eabi/include:${GCC_ARM_PATH}/lib/gcc/arm-none-eabi/9.2.1/include" >> $GITHUB_ENV
54+
3855
- name: cargo check
3956
run: cargo check --target thumbv7em-none-eabihf --features="stub_library,distance,presence"
4057
env:
@@ -48,18 +65,34 @@ jobs:
4865
- uses: actions/checkout@v4
4966
with:
5067
submodules: true
68+
5169
- name: Install beta
5270
uses: dtolnay/rust-toolchain@beta
5371
with:
5472
targets: thumbv7em-none-eabihf
73+
5574
- name: Install ARM toolchain
5675
uses: carlosperate/arm-none-eabi-gcc-action@v1
5776
with:
5877
release: '9-2020-q2'
78+
79+
- name: Install LLVM and Clang
80+
run: |
81+
sudo apt-get update
82+
sudo apt-get install -y llvm-14-dev libclang-14-dev clang-14
83+
5984
- name: Create lib directory
6085
run: mkdir -p "$ACC_RSS_LIBS"
86+
87+
- name: Setup ARM GCC paths
88+
run: |
89+
GCC_ARM_PATH=$(dirname $(dirname $(which arm-none-eabi-gcc)))
90+
echo "ARM_GCC_PATH=${GCC_ARM_PATH}" >> $GITHUB_ENV
91+
echo "CPATH=${GCC_ARM_PATH}/arm-none-eabi/include:${GCC_ARM_PATH}/lib/gcc/arm-none-eabi/9.2.1/include" >> $GITHUB_ENV
92+
6193
- name: cargo update
6294
run: cargo update
95+
6396
- name: cargo check
6497
run: cargo check --target thumbv7em-none-eabihf --features="stub_library,distance,presence"
6598
env:

0 commit comments

Comments
 (0)