pull/82/head
ruki 4 years ago
parent 12e2f9a354
commit cbbb9aa892
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 8
      .github/workflows/linux.yml
  2. 8
      .github/workflows/macos.yml
  3. 10
      .github/workflows/mingw.yml
  4. 8
      .github/workflows/windows.yml
  5. 6
      scripts/test.lua

@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
kind: [static, shared]
runs-on: ${{ matrix.os }}
@ -18,10 +19,7 @@ jobs:
with:
xmake-version: branch@dev
- name: Tests (Static)
- name: Tests
run: |
xmake l ./scripts/test.lua -D
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}
- name: Tests (Shared)
run: |
xmake l ./scripts/test.lua -D --shared

@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest]
kind: [static, shared]
runs-on: ${{ matrix.os }}
@ -18,10 +19,7 @@ jobs:
with:
xmake-version: branch@dev
- name: Tests (Static)
- name: Tests
run: |
xmake l ./scripts/test.lua -D
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}
- name: Tests (Shared)
run: |
xmake l ./scripts/test.lua -D --shared

@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
os: [macOS-latest]
kind: [static, shared]
runs-on: ${{ matrix.os }}
@ -18,14 +19,11 @@ jobs:
with:
xmake-version: branch@dev
- name: prepare
- name: Prepare
run: |
brew install mingw-w64
- name: Tests (Static)
- name: Tests
run: |
xmake l ./scripts/test.lua -D -p mingw
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}
- name: Tests (Shared)
run: |
xmake l ./scripts/test.lua -D -p mingw --shared

@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
kind: [static, shared]
runs-on: ${{ matrix.os }}
@ -18,10 +19,7 @@ jobs:
with:
xmake-version: branch@dev
- name: Tests (Static)
- name: Tests
run: |
xmake l ./scripts/test.lua -D
xmake l ./scripts/test.lua -D -k ${{ matrix.kind }}
- name: Tests (Shared)
run: |
xmake l ./scripts/test.lua -D --shared

@ -9,7 +9,7 @@ local options =
{'v', "verbose", "k", nil, "Enable verbose information." }
, {'D', "diagnosis", "k", nil, "Enable diagnosis information." }
, {nil, "shallow", "k", nil, "Only install the root packages." }
, {nil, "shared", "k", nil, "Enable shared library." }
, {'k', "kind", "kv", nil, "Enable static/shared library." }
, {'p', "plat", "kv", nil, "Set the given platform." }
, {'a', "arch", "kv", nil, "Set the given architecture." }
, {'m', "mode", "kv", nil, "Set the given mode." }
@ -65,11 +65,11 @@ function _require_packages(argv, packages)
if argv.shallow then
table.insert(require_argv, "--shallow")
end
if argv.mode == "debug" and argv.shared then
if argv.mode == "debug" and argv.kind == "shared" then
table.insert(require_argv, "--extra={debug=true,configs={shared=true}}")
elseif argv.mode == "debug" then
table.insert(require_argv, "--extra={debug=true}")
elseif argv.shared then
elseif argv.kind == "shared" then
table.insert(require_argv, "--extra={configs={shared=true}}")
end
table.join2(require_argv, packages)

Loading…
Cancel
Save