summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-24 00:17:26 +0800
committerGitHub <[email protected]>2021-01-24 00:17:26 +0800
commit74c973ec421432e0c9ff20e167021748e8e17ee2 (patch)
treee0aef74653e451672f2387403ee7c1a9f4d508cb
parent57bf2a8ec017fe9f3b3165f3e29b0c19e12d4fd0 (diff)
parentff7f7fa64997a8f604807a9c85a8a07a3c181e81 (diff)
Merge pull request #1206 from xmake-io/ci
add freebsd ci
-rw-r--r--.github/workflows/freebsd.yml31
-rw-r--r--tests/projects/package/basic/test.lua6
-rw-r--r--tests/projects/package/depconfigs/test.lua4
-rw-r--r--tests/projects/package/multiconfig/test.lua4
-rw-r--r--tests/projects/package/rootconfigs/test.lua4
5 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
new file mode 100644
index 000000000..fdfad7765
--- /dev/null
+++ b/.github/workflows/freebsd.yml
@@ -0,0 +1,31 @@
+name: FreeBSD
+
+on:
+ pull_request:
+ push:
+ release:
+ types: [published]
+
+jobs:
+ build:
+
+ runs-on: macos-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: tests
+ uses: vmactions/[email protected]
+ with:
+ usesh: true
+ prepare: pkg install -y curl unzip gmake llvm gsed bash perl5
+ run: |
+ gmake -j4
+ gmake install
+ export XMAKE_ROOT=y
+ xrepo --version
+ xmake lua -v -D tests/run.lua
+
+
diff --git a/tests/projects/package/basic/test.lua b/tests/projects/package/basic/test.lua
index 8644a2af9..4964fecaa 100644
--- a/tests/projects/package/basic/test.lua
+++ b/tests/projects/package/basic/test.lua
@@ -1,4 +1,10 @@
function main(t)
+
+ -- freebsd ci is slower
+ if is_host("bsd") 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
t:build()
diff --git a/tests/projects/package/depconfigs/test.lua b/tests/projects/package/depconfigs/test.lua
index 8644a2af9..a6690754b 100644
--- a/tests/projects/package/depconfigs/test.lua
+++ b/tests/projects/package/depconfigs/test.lua
@@ -1,4 +1,8 @@
function main(t)
+ -- freebsd ci is slower
+ if is_host("bsd") 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
t:build()
diff --git a/tests/projects/package/multiconfig/test.lua b/tests/projects/package/multiconfig/test.lua
index 8644a2af9..a6690754b 100644
--- a/tests/projects/package/multiconfig/test.lua
+++ b/tests/projects/package/multiconfig/test.lua
@@ -1,4 +1,8 @@
function main(t)
+ -- freebsd ci is slower
+ if is_host("bsd") 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
t:build()
diff --git a/tests/projects/package/rootconfigs/test.lua b/tests/projects/package/rootconfigs/test.lua
index 8644a2af9..a6690754b 100644
--- a/tests/projects/package/rootconfigs/test.lua
+++ b/tests/projects/package/rootconfigs/test.lua
@@ -1,4 +1,8 @@
function main(t)
+ -- freebsd ci is slower
+ if is_host("bsd") 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
t:build()