diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000000..5e91058980 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,45 @@ +name: Windows CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + pull_request: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: macos-11 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + # Submoudle + - name: Checkout Submodles + run: git submodule update --init --recursive + # Setup Packages + - name: Setup Packages + run: brew install qt6 moltenvk p7zip pkgconfig + # Setup CMake + - name: Setup CMake + uses: Symbitic/install-cmake@v0.1.1 + with: + platform: mac + # Use Static ZSTD + - name: Remove ZSTD + run: brew uninstall zstd curl php --force --ignore-dependencies + # Run MSBuild + - name: Build Solution + run: mkdir -p build && cd build && cmake .. -G Ninja -DCMAKE_CXX_FLAGS="-Xclang -fcolor-diagnostics" -DCMAKE_PREFIX_PATH=$(brew --prefix qt6) -DDISTRIBUTOR="Mario Party Netplay" + # Build Project + - name: Run Ninja + run: cd build && ninja -j8 + # Upload Artifact + - name: Upload Build Artifact + uses: actions/upload-artifact@v2 + with: + name: DolphinMPN-macOS + path: /Users/runner/work/Dolphin-MPN/Dolphin-MPN/build/Binaries/