|
84 | 84 | path: | |
85 | 85 | build/msfce.exe |
86 | 86 | build/*.dll |
| 87 | + build-macos-x86-64: |
| 88 | + needs: clang-format |
| 89 | + runs-on: macos-11 |
| 90 | + steps: |
| 91 | + - uses: actions/checkout@v1 |
| 92 | + - uses: n1hility/cancel-previous-runs@v2 |
| 93 | + with: |
| 94 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 95 | + - name: Fetch submodules |
| 96 | + run: git submodule update --init --recursive |
| 97 | + - name: Install required system packages |
| 98 | + run: | |
| 99 | + brew install coreutils wget cmake pkg-config nasm meson ninja |
| 100 | + - name: Cache build dependencies |
| 101 | + uses: actions/cache@v2 |
| 102 | + env: |
| 103 | + cache-name: cache-build-dependencies |
| 104 | + with: |
| 105 | + path: extras/apple-darwin-x86_64 |
| 106 | + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('extras/build-macos.sh') }} |
| 107 | + - name: Build dependencies |
| 108 | + run: (test -d extras/apple-darwin-x86_64 && echo Build dependencies found, skip rebuild) || ./extras/build-macos.sh |
| 109 | + - name: Run cmake |
| 110 | + run: | |
| 111 | + export PKG_CONFIG_LIBDIR=$(pwd)/extras/apple-darwin-x86_64/lib/pkgconfig |
| 112 | + mkdir build |
| 113 | + cd build |
| 114 | + cmake -DCMAKE_BUILD_TYPE=Release .. |
| 115 | + - name: Build |
| 116 | + run: | |
| 117 | + cd build |
| 118 | + make -j2 |
| 119 | + build-macos-arm64: |
| 120 | + needs: clang-format |
| 121 | + runs-on: macos-11 |
| 122 | + steps: |
| 123 | + - uses: actions/checkout@v1 |
| 124 | + - uses: n1hility/cancel-previous-runs@v2 |
| 125 | + with: |
| 126 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 127 | + - name: Fetch submodules |
| 128 | + run: git submodule update --init --recursive |
| 129 | + - name: Install required system packages |
| 130 | + run: | |
| 131 | + brew install coreutils wget cmake pkg-config nasm meson ninja |
| 132 | + - name: Cache build dependencies |
| 133 | + uses: actions/cache@v2 |
| 134 | + env: |
| 135 | + cache-name: cache-build-dependencies |
| 136 | + with: |
| 137 | + path: extras/apple-darwin-arm64 |
| 138 | + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('extras/build-macos.sh') }} |
| 139 | + - name: Build dependencies |
| 140 | + run: (test -d extras/apple-darwin-arm64 && echo Build dependencies found, skip rebuild) || ./extras/build-macos.sh -a arm64 |
| 141 | + - name: Run cmake |
| 142 | + run: | |
| 143 | + export PKG_CONFIG_LIBDIR=$(pwd)/extras/apple-darwin-arm64/lib/pkgconfig |
| 144 | + mkdir build |
| 145 | + cd build |
| 146 | + cmake -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_BUILD_TYPE=Release .. |
| 147 | + - name: Build |
| 148 | + run: | |
| 149 | + cd build |
| 150 | + make -j2 |
0 commit comments