Skip to content

Commit ba3eb30

Browse files
committed
Merge branch 'main' into bootloader-script
2 parents 8964841 + 50d297e commit ba3eb30

File tree

2 files changed

+63
-36
lines changed

2 files changed

+63
-36
lines changed

.github/workflows/ci.yaml

Lines changed: 51 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,51 +23,67 @@ jobs:
2323
submodules: false # We'll handle submodules with smart caching
2424
fetch-depth: 0
2525

26-
- name: Cache submodules
27-
id: cache-submodules
28-
uses: actions/cache@v4
29-
with:
30-
path: |
31-
lib/fprime
32-
lib/fprime-zephyr
33-
lib/zephyr-workspace/zephyr
34-
key: project-deps-${{ hashFiles('.gitmodules') }}-v3
35-
restore-keys: |
36-
project-deps-${{ hashFiles('.gitmodules') }}-
37-
project-deps-
26+
# - name: Cache bin
27+
# id: cache-bin
28+
# uses: actions/cache@v4
29+
# with:
30+
# path: |
31+
# bin
32+
# key: bin-${{ hashFiles('Makefile') }}-v3
33+
# restore-keys: |
34+
# bin-${{ hashFiles('Makefile') }}-
35+
# bin-
36+
37+
- name: Download bin tools
38+
if: steps.cache-bin.outputs.cache-hit != 'true'
39+
run: |
40+
make download-bin
41+
42+
# - name: Cache submodules
43+
# id: cache-submodules
44+
# uses: actions/cache@v4
45+
# with:
46+
# path: |
47+
# lib/fprime
48+
# lib/fprime-zephyr
49+
# lib/zephyr-workspace/zephyr
50+
# key: submodules-${{ hashFiles('.gitmodules') }}-v3
51+
# restore-keys: |
52+
# submodules-${{ hashFiles('.gitmodules') }}-
53+
# submodules-
3854

3955
- name: Setup submodules
4056
if: steps.cache-submodules.outputs.cache-hit != 'true'
4157
run: |
4258
make submodules
4359
44-
- name: Cache python environment
45-
id: cache-python
46-
uses: actions/cache@v4
47-
with:
48-
path: fprime-venv
49-
key: python-packages-${{ runner.os }}-${{ hashFiles('requirements.txt') }}-v3
50-
restore-keys: |
51-
python-packages-${{ runner.os }}-
52-
python-packages-
60+
# - name: Cache python venv
61+
# id: cache-python
62+
# uses: actions/cache@v4
63+
# with:
64+
# path: fprime-venv
65+
# key: python-venv-${{ runner.os }}-${{ hashFiles('requirements.txt') }}-v3
66+
# restore-keys: |
67+
# python-venv-${{ runner.os }}-
68+
# python-venv-
5369

54-
- name: Setup python environment
70+
- name: Setup python venv
5571
if: steps.cache-python.outputs.cache-hit != 'true'
5672
run: |
5773
make fprime-venv
5874
59-
- name: Cache Zephyr workspace and SDK
60-
id: cache-zephyr
61-
uses: actions/cache@v4
62-
with:
63-
path: |
64-
lib/zephyr-workspace/modules
65-
lib/zephyr-workspace/bootloader
66-
~/zephyr-sdk-0.17.2
67-
key: zephyr-minimal-${{ hashFiles('west.yml') }}-${{ runner.os }}-v3
68-
restore-keys: |
69-
zephyr-minimal-${{ hashFiles('west.yml') }}-${{ runner.os }}-
70-
zephyr-minimal-
75+
# - name: Cache Zephyr workspace and SDK
76+
# id: cache-zephyr
77+
# uses: actions/cache@v4
78+
# with:
79+
# path: |
80+
# lib/zephyr-workspace/modules
81+
# lib/zephyr-workspace/bootloader
82+
# ~/zephyr-sdk-0.17.2
83+
# key: zephyr-${{ hashFiles('west.yml') }}-${{ runner.os }}-v3
84+
# restore-keys: |
85+
# zephyr-${{ hashFiles('west.yml') }}-${{ runner.os }}-
86+
# zephyr-
7187

7288
- name: Setup Zephyr
7389
if: steps.cache-zephyr.outputs.cache-hit != 'true'
@@ -79,8 +95,7 @@ jobs:
7995

8096
- name: Build
8197
run: |
82-
# Skip both zephyr-setup and submodules since we cached them separately
83-
make build -o zephyr-setup -o submodules
98+
make generate-ci build-ci
8499
85100
- name: Upload build artifacts
86101
uses: actions/upload-artifact@v4

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ generate: submodules fprime-venv zephyr-setup ## Generate FPrime-Zephyr Proves C
4646
@echo "Generating FPrime-Zephyr Proves Core Reference..."
4747
@$(UV) run fprime-util generate --force
4848

49+
.PHONY: generate-ci
50+
generate-ci:
51+
@$(UV) run fprime-util generate --force
52+
4953
.PHONY: generate-if-needed
5054
BUILD_DIR ?= $(shell pwd)/build-fprime-automatic-zephyr
5155
generate-if-needed:
@@ -56,6 +60,10 @@ build: submodules zephyr-setup fprime-venv generate-if-needed ## Build FPrime-Ze
5660
@echo "Building..."
5761
@$(UV) run fprime-util build
5862

63+
.PHONY: build-ci
64+
build-ci:
65+
@$(UV) run fprime-util build
66+
5967
.PHONY: test-integration
6068
test-integration: uv
6169
@$(UV) run pytest FprimeZephyrReference/test/int --deployment build-artifacts/zephyr/fprime-zephyr-deployment
@@ -93,6 +101,10 @@ gds-integration:
93101
@$(GDS_COMMAND) --gui=none
94102

95103
##@ Build Tools
104+
105+
.PHONY: download-bin
106+
download-bin: uv
107+
96108
BIN_DIR ?= $(shell pwd)/bin
97109
$(BIN_DIR):
98110
mkdir -p $(BIN_DIR)

0 commit comments

Comments
 (0)