Skip to content

Commit f7343bd

Browse files
author
MochiOS Team
committed
fix: add GOTOOLCHAIN=local + upload build.log artifact, downgrade go.mod to 1.21
the makepkg exit code 4 after run #39 means 'user function error' (build/package failed). all go files pass gofmt individually, so ruling out syntax. adding GOTOOLCHAIN=local prevents any toolchain download attempt, and the build log artifact lets us see the actual error without being signed into github.
1 parent 096c484 commit f7343bd

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/build.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
export WORK_DIR="$PWD/work"
6969
export GNUPGHOME="/home/mochi/.mochios-gnupg"
7070
export SIGN_KEY="ci@mochios.dev"
71+
export GOTOOLCHAIN="local"
7172
bash build.sh 2>&1 | tee build.log; exit ${PIPESTATUS[0]}
7273
7374
- name: Upload build log
@@ -80,6 +81,14 @@ jobs:
8081
echo "No build log found or empty"
8182
fi
8283
84+
- name: Upload build log as artifact
85+
if: always()
86+
uses: actions/upload-artifact@v4
87+
with:
88+
name: build-log
89+
path: build.log
90+
retention-days: 7
91+
8392
- name: List ISO output
8493
run: |
8594
ls -lh out/*.iso 2>/dev/null || echo "No ISO found"

‎mochi/go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module mochi
22

3-
go 1.26
3+
go 1.21

0 commit comments

Comments
 (0)