diff options
author | crupest <crupest@outlook.com> | 2021-04-12 23:13:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-12 23:13:20 +0800 |
commit | 439c1a173c6609569ee2546184ad4e98ba886206 (patch) | |
tree | 7326a355d02eaf853b40a6827f31997cae944d29 | |
parent | 01bbdbe1420c1da4e9bd9595582a9e2d97f32a85 (diff) | |
download | cru-439c1a173c6609569ee2546184ad4e98ba886206.tar.gz cru-439c1a173c6609569ee2546184ad4e98ba886206.tar.bz2 cru-439c1a173c6609569ee2546184ad4e98ba886206.zip |
...
-rw-r--r-- | .github/workflows/ci.yml | 1 | ||||
-rw-r--r-- | tools/win_build.py | 21 |
2 files changed, 6 insertions, 16 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d970e264..b461e3d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,6 @@ jobs: matrix: buildConfiguration: [Debug, Release] architecture: [x86, x64] - fail-fast: true steps: - uses: actions/checkout@v2 diff --git a/tools/win_build.py b/tools/win_build.py index c011aafe..73086917 100644 --- a/tools/win_build.py +++ b/tools/win_build.py @@ -8,8 +8,6 @@ import sys parser = argparse.ArgumentParser() parser.add_argument('command', choices=[ 'configure', 'build', 'test'], nargs='?', default='test', help='specify command to execute') -parser.add_argument('--skip-install-packages', action="store_true", - help='skip using vcpkg to install package') parser.add_argument('-a', '--arch', choices=['x86', 'x64'], default='x64', help='specify target cpu architecture') parser.add_argument('-c', '--config', choices=['Debug', 'Release'], @@ -38,11 +36,6 @@ work_dir = os.path.join(project_root, args.work_dir) # continue # os.environ[k] = v -def install_packages(): - subprocess.check_call( - 'vcpkg install', stdout=sys.stdout, stderr=sys.stderr) - - def configure(): generater_vs_arch_map = { 'x86': 'Win32', @@ -69,12 +62,10 @@ def test(): os.chdir(project_root) -if not args.skip_install_packages: - install_packages() - configure() - -if args.command == 'build' or args.command == 'test': - build() - if args.command == 'test': - test() +if args.command == 'configure': + return +build() +if args.command == 'build': + return +test() |