205 Commits

Author SHA1 Message Date
dependabot[bot]
6b865828a3 chore(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 00:21:12 +00:00
xushiwei
b25ae1b4e7 Merge pull request #1384 from luoliwoshang/feature/export-different-names-1378
cl: support //export with different symbol names on embedded targets
2025-11-17 08:10:09 +08:00
Haolan
7f1e07755a ci: use llgo test instead
ci: use llgo test instead
2025-11-14 16:13:41 +08:00
Haolan
33a00dff1b fix: invalid import and improve tests
refactor: remove initGC

test: add test for GC

fix: invalid import in z_gc

ci: test baremetal GC for coverage

ci: test baremetal GC for coverage
2025-11-14 16:13:03 +08:00
luoliwoshang
e11ae0e21b test: add comprehensive tests and CI for export feature
Add extensive test coverage, demo program, and CI integration for
//export with different names feature:

Unit Tests (cl/builtin_test.go):
- TestHandleExportDiffName: core functionality with 4 scenarios
  * Different names with enableExportRename
  * Same names with enableExportRename
  * Different names with spaces in export directive
  * Matching names without enableExportRename
- TestInitLinknameByDocExportDiffNames: flag behavior verification
  * Export with different names when enabled
  * Export with same name when enabled
  * Normal linkname directives
- TestInitLinkExportDiffNames: edge case handling
  * Symbol not found in decl packages (silent handling)

Demo (_demo/embed/export/):
- Example program demonstrating various export patterns
- Verification script testing both embedded and non-embedded targets
- Documents expected behavior and error cases

CI Integration (.github/workflows/llgo.yml):
- Add export demo to embedded target tests
- Ensure feature works correctly across platforms
- Catch regressions in future changes

The tests verify:
✓ Different names work with -target flag
✓ Same names work in all cases
✓ Different names fail without -target flag
✓ Proper error messages for invalid exports
✓ Silent handling for decl packages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 18:52:58 +08:00
xushiwei
d368cade1c Merge pull request #1388 from luoliwoshang/ci/no-auto-update
ci:avoid auto upgrade before brew install
2025-11-10 13:47:43 +08:00
luoliwoshang
cda9d682f2 ci:avoid brew auto upgrade dependant 2025-11-06 19:13:11 +08:00
xushiwei
86cafff113 Merge pull request #1375 from goplus/dependabot/github_actions/actions/download-artifact-6
chore(deps): bump actions/download-artifact from 5 to 6
2025-10-27 16:37:07 +08:00
dependabot[bot]
533ba9ebd8 chore(deps): bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 00:17:07 +00:00
dependabot[bot]
f34062166b chore(deps): bump actions/download-artifact from 5 to 6
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 00:17:03 +00:00
dependabot[bot]
355ff1009d chore(deps): bump actions/setup-node from 5 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 00:13:38 +00:00
xushiwei
18ef7200bc Merge pull request #1341 from luoliwoshang/fix-ci-duplicate-runs
ci: prevent duplicate workflow runs for xgopilot branches
2025-10-15 06:30:59 +08:00
luoliwoshang
bf05779f2f ci: prevent duplicate workflow runs for xgopilot branches
Add !xgopilot/** exclusion pattern to all workflow trigger configurations,
matching the existing dependabot pattern. This ensures that xgopilot branches
only trigger CI checks on pull_request events, eliminating redundant push
event triggers.

Fixes #1340

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 19:00:47 +08:00
luoliwoshang
8ce0574b9e Merge remote-tracking branch 'upstream/main' into ci/rmllvm 2025-09-26 17:07:10 +08:00
luoliwoshang
dd4cf69e25 Merge remote-tracking branch 'upstream/main' into ci/rmllvm 2025-09-26 17:01:47 +08:00
xushiwei
1ee4da9851 Merge pull request #1320 from aofei/ci
chore(ci): migrate from `macos-13` to `macos-15-intel` runner
2025-09-26 16:57:46 +08:00
luoliwoshang
4a6331c668 ci:rm unuse llvm download tool 2025-09-26 15:07:01 +08:00
luoliwoshang
036bb858e2 ci:link --overwrite python 2025-09-26 11:58:17 +08:00
luoliwoshang
5e86d1aee2 ci:fix brew python & update macos-13 -> macos-15 2025-09-26 11:29:20 +08:00
luoliwoshang
4cff9bb0a7 ci:release-build use macos-15-intel instead macos-13 https://github.com/goplus/llgo/pull/1320 2025-09-26 10:51:07 +08:00
luoliwoshang
087696e31b ci:rm zlib link 2025-09-26 10:23:32 +08:00
luoliwoshang
dc587f684d ci:restore yml 2025-09-25 18:22:21 +08:00
luoliwoshang
5e6501642d release:instal zlib 2025-09-25 17:35:02 +08:00
luoliwoshang
1811ca1220 ci:-z 2025-09-25 15:51:14 +08:00
luoliwoshang
f34ccc1b0c ci:zlib 2025-09-25 15:36:52 +08:00
luoliwoshang
7180f20366 ci:build-essential 2025-09-25 15:24:21 +08:00
luoliwoshang
bb8e81fb9b ci:rm linux llvm download 2025-09-25 15:02:00 +08:00
luoliwoshang
21e7d62c7d ci:rm unuse shell decl 2025-09-25 14:46:00 +08:00
luoliwoshang
35e9ffe31e ci:remove macos llvm download when release 2025-09-25 14:37:29 +08:00
Aofei Sheng
79f404ac88 chore(ci): migrate from macos-13 to macos-15-intel runner
GitHub announced the deprecation of the `macos-13` runner image[^1],
which will be completely removed by December 4th, 2025.

This commit migrates all workflows to use `macos-15-intel` runners
following the announcement's recommendation.

This also uses `ubuntu-latest` alias instead of explicit `ubuntu-24.04`.

[^1]: https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
2025-09-22 10:01:20 +08:00
xushiwei
a202b484a9 Merge pull request #1285 from cpunion/impl-build-mode
Implement llgo build mode support
2025-09-14 10:30:47 +08:00
xushiwei
17dfdd38c2 Merge pull request #1283 from cpunion/reorganize-demos
reorganize: consolidate demo directories
2025-09-14 10:26:45 +08:00
Li Jie
c3b674d804 add export demo and test 2025-09-11 14:08:52 +08:00
xushiwei
d7b9968d9a Merge pull request #1253 from luoliwoshang/release/esp-clang
release:compile & release with esp clang/llvm
2025-09-10 13:40:12 +08:00
luoliwoshang
a17f1f0bb0 set origin test
avoid  transform
2025-09-09 19:05:26 +08:00
xushiwei
0dbc686960 Merge pull request #1281 from goplus/dependabot/github_actions/actions/setup-go-6
build(deps): bump actions/setup-go from 5 to 6
2025-09-09 17:19:39 +08:00
Li Jie
64df39b3c5 reorganize: consolidate demo directories
- Consolidate _demo, _pydemo, _embdemo into single _demo directory structure
- Organize demos by language: _demo/{go,py,c,embed}/
- Categorize demos based on imports:
- Python library demos (py imports) → _demo/py/
- C/C++ library demos (c/cpp imports) → _demo/c/
- Go-specific demos → _demo/go/
- Embedded demos → _demo/embed/
- Move C-related demos (asm*, cabi*, cgo*, linkname, targetsbuild) from go/ to c/
- Update all path references in README.md and GitHub workflows
- Improve demo organization and navigation as requested in #1256

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 15:06:55 +08:00
luoliwoshang
3be12dce44 ci:test helloword with embed target 2025-09-09 13:44:56 +08:00
luoliwoshang
f66bbb7fc3 execute rpath search 2025-09-09 12:52:26 +08:00
luoliwoshang
d0cf57fa95 ci:test release without llvm dependency 2025-09-09 12:10:14 +08:00
luoliwoshang
0340ef2a75 goreleaser:move clang to result 2025-09-09 11:06:55 +08:00
luoliwoshang
13b5f39125 ci:fail when docker start error 2025-09-09 09:52:22 +08:00
dependabot[bot]
2a022be510 build(deps): bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 00:44:54 +00:00
luoliwoshang
a19011897c install with esp-clang & new cache key 2025-09-08 22:52:51 +08:00
luoliwoshang
9cea3226db ci:fail when docker start error 2025-09-08 19:07:12 +08:00
luoliwoshang
bb89ef5c5d ci:refresh ci .sysroot cache key 2025-09-08 17:44:46 +08:00
Li Jie
d46a3f2f49 Merge commit '7de4137d4678a3bcbd735f887028489f97f1e479' into embed-cmds
# Conflicts:
#	internal/build/build.go
2025-09-08 15:22:48 +08:00
xushiwei
1f7883654a Merge pull request #1269 from luoliwoshang/ci/dependbot
ci:avoid dependbot trigger reduant push event
2025-09-08 14:42:30 +08:00
luoliwoshang
922d174402 fix yml conflict 2025-09-08 14:33:40 +08:00
Li Jie
88e0844ada ignore codecov from internal/{monitor,flash} 2025-09-07 16:23:30 +08:00