diff options
| author | ruki <[email protected]> | 2026-01-05 22:53:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-05 22:53:51 +0800 |
| commit | f49b27c442870afeaf42a98fb187097845bf814d (patch) | |
| tree | c70bb9af823341a8878a67464ce4bcdf175e991e | |
| parent | 1778ae8fd0a3d09018525cc90d8440e79f976477 (diff) | |
add alpine ci
| -rw-r--r-- | .github/workflows/alpine.yml | 2 | ||||
| -rw-r--r-- | tests/projects/linux/bpf/minimal/test.lua | 2 | ||||
| -rw-r--r-- | tests/projects/package/components/test.lua | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/alpine.yml b/.github/workflows/alpine.yml index 8583d1bfb..5bce09441 100644 --- a/.github/workflows/alpine.yml +++ b/.github/workflows/alpine.yml @@ -69,7 +69,7 @@ jobs: - name: Prepare build tools run: | uname -a - apk --no-cache add grep linux-headers bash curl git unzip build-base tar 7zip + apk --no-cache add grep linux-headers bash curl git unzip build-base tar 7zip perl - uses: actions/checkout@v2 with: diff --git a/tests/projects/linux/bpf/minimal/test.lua b/tests/projects/linux/bpf/minimal/test.lua index 2856a3831..5b01d6685 100644 --- a/tests/projects/linux/bpf/minimal/test.lua +++ b/tests/projects/linux/bpf/minimal/test.lua @@ -1,5 +1,5 @@ function main(t) - if is_host("linux") and os.arch() == "x86_64" then + if is_host("linux") and os.arch() == "x86_64" and linuxos.name() ~= "alpine" then os.vrun("xmake f -y -p android -vD") os.vrun("xmake -y -vD") end diff --git a/tests/projects/package/components/test.lua b/tests/projects/package/components/test.lua index fdec596a7..a7e71bb89 100644 --- a/tests/projects/package/components/test.lua +++ b/tests/projects/package/components/test.lua @@ -2,6 +2,9 @@ function main(t) if is_host("bsd", "solaris") or is_subhost("msys") then return end + if is_host("linux") and linuxos.name() == "alpine" then + return + end -- only for x86/x64, because it will take too long time on ci with arm/mips if os.subarch():startswith("x") or os.subarch() == "i386" then |
