Skip to content

Commit 7563662

Browse files
committed
update
1 parent 859befb commit 7563662

File tree

1 file changed

+4
-42
lines changed

1 file changed

+4
-42
lines changed

.github/workflows/build-cross-target.yaml

+4-42
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,6 @@ defaults:
1717
working-directory: ot3-firmware
1818

1919
jobs:
20-
build-cross-config:
21-
name: Configure for cross-compiling
22-
runs-on: "ubuntu-20.04"
23-
timeout-minutes: 10
24-
steps:
25-
- name: Checkout github actions directory
26-
uses: actions/checkout@v4
27-
with:
28-
sparse-checkout: |
29-
.github/actions
30-
sparse-checkout-cone-mode: false
31-
path: actions
32-
33-
- name: Checkout ot3-firmware repository
34-
uses: actions/checkout@v4
35-
with:
36-
path: ot3-firmware
37-
38-
- name: Setup main
39-
uses: ./actions/.github/actions/main-setup
40-
with:
41-
cache-version: ${{ secrets.CACHE_VERSION }}
42-
43-
- name: Configure
44-
run: cmake --preset=cross .
45-
46-
- name: Upload artifacts
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: build-cross
50-
path: ot3-firmware/build-cross
51-
5220
format-ci-only:
5321
needs: build-cross-config
5422
runs-on: "ubuntu-20.04"
@@ -76,14 +44,11 @@ jobs:
7644
with:
7745
cache-version: ${{ secrets.CACHE_VERSION }}
7846

79-
- uses: actions/download-artifact@v4
80-
with:
81-
name: build-cross
82-
path: ot3-firmware/build-cross
47+
- name: Configure
48+
run: cmake --preset=cross .
8349

8450
- name: Run format-ci
8551
run: |
86-
ls -la
8752
cd build-cross
8853
make ${{ matrix.target }}-format-ci
8954
@@ -114,16 +79,13 @@ jobs:
11479
with:
11580
cache-version: ${{ secrets.CACHE_VERSION }}
11681

117-
- uses: actions/download-artifact@v4
118-
with:
119-
name: build-cross
120-
path: ot3-firmware/build-cross
82+
- name: Configure
83+
run: cmake --preset=cross .
12184

12285
- name: Build applications
12386
run: |
12487
cd build-cross
12588
make ${{ matrix.target }}-applications
126-
make ${{ matrix.target }}-format-ci
12789
12890
- name: Run format-ci
12991
run: |

0 commit comments

Comments
 (0)