diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-11-10 12:29:26 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-11-11 07:42:40 -0800 |
commit | 220da39c7cf0f3b0429bbf80b71da0bd7a4d84a5 (patch) | |
tree | 93db9069335e25bccd4b15cef08df658fe6cfb82 | |
parent | 91bf84eaa561ebefc6cd4de5fc2b9d2ef81ef505 (diff) | |
download | meson-220da39c7cf0f3b0429bbf80b71da0bd7a4d84a5.zip meson-220da39c7cf0f3b0429bbf80b71da0bd7a4d84a5.tar.gz meson-220da39c7cf0f3b0429bbf80b71da0bd7a4d84a5.tar.bz2 |
actions: Add unittests for macos
-rw-r--r-- | .github/workflows/macos.yml | 35 | ||||
-rwxr-xr-x | run_unittests.py | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..7971b4b --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,35 @@ +name: macos + +on: + push: + paths: + - "mesonbuild/**" + - "test cases/**" + - ".github/workflows/macos.yml" + pull_request: + paths: + - "mesonbuild/**" + - "test cases/**" + - ".github/workflows/macos.yml" + +jobs: + unittests-appleclang: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + - run: | + python -m pip install --upgrade pip + python -m pip install pytest pytest-xdist jsonschema + - run: brew install pkg-config ninja llvm qt + - env: + CPPFLAGS: "-I/usr/local/include" + LDFLAGS: "-L/usr/local/lib" + MESON_UNIT_TEST_BACKEND: ninja + # These cannot evaluate anything, so we cannot set PATH or SDKROOT here + run: | + export SDKROOT="$(xcodebuild -version -sdk macosx Path)" + export PATH="$HOME/tools:/usr/local/opt/qt/bin:$PATH:$(brew --prefix llvm)/bin" + ./run_unittests.py diff --git a/run_unittests.py b/run_unittests.py index c23756d..7cb51ee 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +from mesonbuild.compilers.objc import AppleClangObjCCompiler import time import stat import subprocess |