Unverified 提交 c7723ccb authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi 提交者: GitHub

Merge pull request #741 from nazar-pc/improve-windows-support

Improve Windows support by not requiring MSVC configuration
...@@ -20,17 +20,6 @@ jobs: ...@@ -20,17 +20,6 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Add MSVC compiler
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
# This is needed as a workaround for GNU linker being first in PATH and thus preventing Meson from finding MSVC
# linker.
- name: Remove GNU linker for MSVC
shell: bash
run: rm /usr/bin/link
if: runner.os == 'Windows'
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
...@@ -47,7 +36,6 @@ jobs: ...@@ -47,7 +36,6 @@ jobs:
path: | path: |
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
target
key: ${{ matrix.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }} key: ${{ matrix.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
- name: cargo fmt - name: cargo fmt
......
...@@ -32,13 +32,6 @@ jobs: ...@@ -32,13 +32,6 @@ jobs:
- os: macos-11 - os: macos-11
cc: clang cc: clang
cxx: clang++ cxx: clang++
# TODO: These build, but don't run, unlock if you figure out why.
# - os: windows-2019
# cc: gcc
# cxx: g++
# - os: windows-2019
# cc: clang
# cxx: clang++
# TODO: Unlock when intermittent unexplainable CI errors are resolved. # TODO: Unlock when intermittent unexplainable CI errors are resolved.
# - os: windows-2019 # - os: windows-2019
# cc: cl # cc: cl
...@@ -54,25 +47,6 @@ jobs: ...@@ -54,25 +47,6 @@ jobs:
CXX: ${{ matrix.build.cxx }} CXX: ${{ matrix.build.cxx }}
steps: steps:
- name: Add MSVC compiler
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows' && matrix.build.cc == 'cl'
# This is needed as a workaround for GNU linker being first in PATH and
# thus preventing Meson from finding MSVC linker.
- name: Remove GNU linker for MSVC
shell: bash
run: rm /usr/bin/link
if: runner.os == 'Windows' && matrix.build.cc == 'cl'
# Clang is in MSYS2's bin directory, but adding it to PATH breaks a lot of
# stuff, so let's just fix paths.
- name: Specify full path to Clang on Windows
run: |
echo "CC=C:\msys64\mingw64\bin\${env:CC}" >> $env:GITHUB_ENV
echo "CXX=C:\msys64\mingw64\bin\${env:CXX}" >> $env:GITHUB_ENV
if: runner.os == 'Windows' && matrix.build.cc == 'clang'
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
...@@ -99,7 +73,4 @@ jobs: ...@@ -99,7 +73,4 @@ jobs:
- run: npm run worker:build - run: npm run worker:build
- run: npm run test:worker - run: npm run test:worker
# All compilers on Windows can build everything, but tests fail to run if: runner.os != 'Windows'
# on GCC/Clang with "Error -1073741511", remove condition below if you
# fixed it.
if: runner.os != 'Windows' || matrix.build.cc == 'cl'
...@@ -38,6 +38,13 @@ else ...@@ -38,6 +38,13 @@ else
export PYTHONPATH := $(PIP_DIR):${PYTHONPATH} export PYTHONPATH := $(PIP_DIR):${PYTHONPATH}
endif endif
# Activate VS environment on Windows by default.
ifeq ($(OS),Windows_NT)
ifeq ($(MESON_ARGS),"")
MESON_ARGS = $(subst $\",,"--vsenv")
endif
endif
.PHONY: \ .PHONY: \
default meson-ninja setup clean clean-pip clean-subprojects clean-all mediasoup-worker xcode lint format test tidy \ default meson-ninja setup clean clean-pip clean-subprojects clean-all mediasoup-worker xcode lint format test tidy \
fuzzer fuzzer-run-all docker-build docker-run libmediasoup-worker fuzzer fuzzer-run-all docker-build docker-run libmediasoup-worker
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论