@@ -20,60 +20,45 @@ jobs:
20
20
wget -P /tmp https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.5-1/zephyr-sdk-0.16.5-1_linux-x86_64.tar.xz
21
21
tar -x -f /tmp/zephyr-sdk-0.16.5-1_linux-x86_64.tar.xz -C /opt
22
22
/opt/zephyr-sdk-0.16.5-1/setup.sh -h -c -t all
23
- rm /tmp/zephyr-sdk-0.16.5-1_linux-x86_64.tar.xz
24
23
25
24
- name : Checkout repository for manifest
26
25
uses : actions/checkout@v4
27
26
with :
28
27
path : repo
29
28
30
- - name : Setup git user
29
+ - name : Setup git repository
31
30
run : |
32
31
git config --global user.email test@user.com
33
32
git config --global user.name test
34
33
34
+ git init
35
+ cp ${{ github.workspace }}/repo/.github/framework.xml .
36
+
37
+ git add framework.xml
38
+ git commit -m "Add manifest"
39
+
35
40
- name : Initialize and sync repositories
36
41
run : |
37
- git config --global user.email test@user.com
38
- git config --global user.name test
39
- mkdir -p ~/workspace
40
- cd ~/workspace
41
-
42
- # Check if the current branch exists in the repo
43
- cd ${{ github.workspace }}/repo
44
- if git show-ref --verify --quiet refs/heads/${{ github.ref_name }}; then
45
- BRANCH=${{ github.ref_name }}
46
- echo "Using branch: $BRANCH"
47
- else
48
- BRANCH=main
49
- echo "Branch ${{ github.ref_name }} not found, using main"
50
- fi
51
-
52
- # Go back to workspace and init
53
- cd ~/workspace
54
- repo init -u file://${{ github.workspace }}/repo -b $BRANCH -m .github/framework.xml
42
+ repo init -m framework.xml
55
43
repo sync
56
44
57
45
- name : Fix binman issue
58
46
run : |
59
- cd ~/workspace
60
47
sed -e 's/>=61.0/==68.2.2/' -i src/third_party/u-boot/files/tools/binman/pyproject.toml
61
48
62
49
- name : Install Python dependencies
63
50
run : |
64
- cd ~/workspace
65
51
python3.11 -m venv .
66
52
. ./bin/activate
67
53
pip3.11 install pyyaml pykwalify packaging pyelftools colorama src/platform/ec/zephyr/zmake src/third_party/u-boot/files/tools/binman
68
54
69
55
- name : Build lotus
70
56
run : |
71
- cd ~/workspace
72
57
. ./bin/activate
73
58
zmake -j4 build lotus
74
59
75
60
- name : File sha256
76
- run : sha256sum ~/workspace/ src/platform/ec/build/zephyr/lotus/output/ec.bin
61
+ run : sha256sum src/platform/ec/build/zephyr/lotus/output/ec.bin
77
62
78
63
- name : Generate artifact version
79
64
run : |
83
68
uses : actions/upload-artifact@v4
84
69
with :
85
70
name : lotus.${{ env.VERSIONINFO }}
86
- path : ~/workspace/ src/platform/ec/build/zephyr/lotus/output
71
+ path : src/platform/ec/build/zephyr/lotus/output
0 commit comments