mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 13:04:36 +03:00
Improved CI problem matching by always doing out-of-source build (Ninja issue)
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -97,6 +97,8 @@ jobs:
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: "source"
|
||||
|
||||
- name: "Python"
|
||||
uses: actions/setup-python@v2
|
||||
@@ -104,14 +106,14 @@ jobs:
|
||||
python-version: "3.x"
|
||||
|
||||
- name: "Prepare"
|
||||
run: python -B .github/workflows/run-step.py
|
||||
run: python -B source/.github/workflows/run-step.py
|
||||
--step=prepare
|
||||
--compiler=${{matrix.cxx}}
|
||||
--architecture=${{matrix.architecture}}
|
||||
--diagnose=${{matrix.diagnose}}
|
||||
|
||||
- name: "Configure"
|
||||
run: python -B .github/workflows/run-step.py
|
||||
run: python -B source/.github/workflows/run-step.py
|
||||
--step=configure
|
||||
--compiler=${{matrix.cxx}}
|
||||
--architecture=${{matrix.architecture}}
|
||||
@@ -121,7 +123,7 @@ jobs:
|
||||
--problem-matcher=${{matrix.problem_matcher}}
|
||||
|
||||
- name: "Build"
|
||||
run: python -B .github/workflows/run-step.py
|
||||
run: python -B source/.github/workflows/run-step.py
|
||||
--step=build
|
||||
--compiler=${{matrix.cxx}}
|
||||
--architecture=${{matrix.architecture}}
|
||||
@@ -129,7 +131,7 @@ jobs:
|
||||
--diagnose=${{matrix.diagnose}}
|
||||
|
||||
- name: "Test"
|
||||
run: python -B .github/workflows/run-step.py
|
||||
run: python -B source/.github/workflows/run-step.py
|
||||
--step=test
|
||||
--build-type=${{matrix.build_type}}
|
||||
--diagnose=${{matrix.diagnose}}
|
||||
|
||||
6
.github/workflows/run-step.py
vendored
6
.github/workflows/run-step.py
vendored
@@ -76,8 +76,10 @@ def main():
|
||||
generator = "Visual Studio 15 2017"
|
||||
elif compiler == "vs2019":
|
||||
generator = "Visual Studio 16 2019"
|
||||
else:
|
||||
elif platform_name == "Darwin":
|
||||
generator = "Unix Makefiles"
|
||||
else:
|
||||
generator = "Ninja"
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -126,7 +128,7 @@ def main():
|
||||
# ---------------------------------------------------------------------------
|
||||
if step == "configure":
|
||||
if args.problem_matcher:
|
||||
log("::add-matcher::.github/problem-matcher.json")
|
||||
log("::add-matcher::" + os.path.join(source_root, ".github", "problem-matcher.json"))
|
||||
|
||||
os.makedirs(args.build_dir, exist_ok=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user