Skip to content

Commit ad76747

Browse files
committed
fix: should work now
1 parent 340e164 commit ad76747

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/lotus-build-charger-threshold.yml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,60 +20,45 @@ jobs:
2020
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
2121
tar -x -f /tmp/zephyr-sdk-0.16.5-1_linux-x86_64.tar.xz -C /opt
2222
/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
2423
2524
- name: Checkout repository for manifest
2625
uses: actions/checkout@v4
2726
with:
2827
path: repo
2928

30-
- name: Setup git user
29+
- name: Setup git repository
3130
run: |
3231
git config --global user.email test@user.com
3332
git config --global user.name test
3433
34+
git init
35+
cp ${{ github.workspace }}/repo/.github/framework.xml .
36+
37+
git add framework.xml
38+
git commit -m "Add manifest"
39+
3540
- name: Initialize and sync repositories
3641
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
5543
repo sync
5644
5745
- name: Fix binman issue
5846
run: |
59-
cd ~/workspace
6047
sed -e 's/>=61.0/==68.2.2/' -i src/third_party/u-boot/files/tools/binman/pyproject.toml
6148
6249
- name: Install Python dependencies
6350
run: |
64-
cd ~/workspace
6551
python3.11 -m venv .
6652
. ./bin/activate
6753
pip3.11 install pyyaml pykwalify packaging pyelftools colorama src/platform/ec/zephyr/zmake src/third_party/u-boot/files/tools/binman
6854
6955
- name: Build lotus
7056
run: |
71-
cd ~/workspace
7257
. ./bin/activate
7358
zmake -j4 build lotus
7459
7560
- 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
7762

7863
- name: Generate artifact version
7964
run: |
@@ -83,4 +68,4 @@ jobs:
8368
uses: actions/upload-artifact@v4
8469
with:
8570
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

Comments
 (0)