Skip to content

Commit 1e62dd7

Browse files
committed
CI: Debug arm-none-eabi-gcc
1 parent cd0c87a commit 1e62dd7

File tree

2 files changed

+37
-28
lines changed

2 files changed

+37
-28
lines changed

.github/workflows/ci.yaml

+26-20
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
matrix:
1616
rust:
1717
- stable
18-
- beta
19-
- nightly
20-
- 1.51.0 # Minimum supported rust version (MSRV)
21-
include:
22-
- rust: nightly
23-
experimental: true
18+
#- beta
19+
#- nightly
20+
#- 1.51.0 # Minimum supported rust version (MSRV)
21+
#include:
22+
#- rust: nightly
23+
#experimental: true
2424

2525
steps:
2626
- uses: actions/checkout@v2
@@ -38,19 +38,19 @@ jobs:
3838
run: |
3939
pip3 install --user python-dateutil linkchecker
4040
41-
- name: Cache installed binaries
42-
uses: actions/cache@v1
43-
id: cache-bin
44-
with:
45-
path: ~/cache-bin
46-
key: cache-bin
41+
#- name: Cache installed binaries
42+
#uses: actions/cache@v1
43+
#id: cache-bin
44+
#with:
45+
#path: ~/cache-bin
46+
#key: cache-bin
4747

48-
- name: Install mdbook
49-
if: steps.cache-bin.outputs.cache-hit != 'true'
50-
uses: actions-rs/[email protected]
51-
with:
52-
crate: mdbook
53-
version: latest
48+
#- name: Install mdbook
49+
#if: steps.cache-bin.outputs.cache-hit != 'true'
50+
#uses: actions-rs/[email protected]
51+
#with:
52+
#crate: mdbook
53+
#version: latest
5454

5555
- name: Install cargo-binutils
5656
if: steps.cache-bin.outputs.cache-hit != 'true'
@@ -77,7 +77,13 @@ jobs:
7777
cp ~/.cargo/bin/* ~/cache-bin
7878
7979
- name: Put new bin directory into path
80-
run: echo "~/cache-bin" >> $GITHUB_PATH
80+
run: |
81+
echo "~/cache-bin" >> $GITHUB_PATH
82+
83+
- name: Test arm-none-eabi-gcc
84+
run: |
85+
echo $PATH
86+
arm-none-eabi-gcc --version
8187
8288
- name: Test
8389
run: bash ci/script.sh
@@ -102,7 +108,7 @@ jobs:
102108
key: cache-bin
103109

104110
- name: Put new bin directory into path
105-
run: echo "~/cache-bin" >> $GITHUB_PATH
111+
run: echo "$HOME/cache-bin" >> $GITHUB_PATH
106112

107113
- name: Build the book
108114
run: mdbook build

ci/script.sh

+11-8
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ set -euxo pipefail
1111

1212
main() {
1313
# build the book and check that it has no dead links
14-
mdbook build
14+
#mdbook build
1515

16-
linkchecker book
16+
#linkchecker book
1717

1818
# now check this as a directory of the bookshelf
19-
rm -rf shelf
20-
mkdir shelf
21-
mv book shelf
22-
linkchecker shelf
19+
#rm -rf shelf
20+
#mkdir shelf
21+
#mv book shelf
22+
#linkchecker shelf
2323

24-
mv shelf/book .
25-
rmdir shelf
24+
#mv shelf/book .
25+
#rmdir shelf
2626

2727
# test the instructions at different stages
2828
cd ci
@@ -124,6 +124,9 @@ main() {
124124

125125
# check that the disassembly matches
126126
pushd app
127+
echo $PATH
128+
export $PATH
129+
arm-none-eabi-gcc --version
127130
diff -b release.objdump \
128131
<(cargo objdump --bin app --release -- -d --no-show-raw-insn --print-imm-hex --no-leading-addr)
129132
diff release.vector_table \

0 commit comments

Comments
 (0)