diff --git a/.github/workflows/build-jcef.yml b/.github/workflows/build-jcef.yml index d95cdefb..835f06a3 100644 --- a/.github/workflows/build-jcef.yml +++ b/.github/workflows/build-jcef.yml @@ -59,3 +59,32 @@ jobs: jcef_build/windows_${{ matrix.platform }}.tar.gz jcef_build/windows_${{ matrix.platform }}.tar.gz.sha256 if-no-files-found: error + + java-cef-macos: + runs-on: [macos-12] + strategy: + matrix: + platform: [amd64, arm64] + steps: + - uses: actions/checkout@v3 + - run: | + brew install ninja + brew install python + brew install coreutils + pip install six + pip install --upgrade gsutil + sudo xcode-select --switch /Applications/Xcode_13.1.app + mkdir jcef_build && cd jcef_build + cmake -G "Ninja" -DPROJECT_ARCH=${{ matrix.platform }} -DCMAKE_BUILD_TYPE=Release .. + ninja -j4 + mv native/Release macos_${{ matrix.platform }} + tar -czf macos_${{ matrix.platform }}.tar.gz macos_${{ matrix.platform }} + sha256sum macos_${{ matrix.platform }}.tar.gz > macos_${{ matrix.platform }}.tar.gz.sha256 + + - uses: actions/upload-artifact@v3 + with: + name: 'macos_${{ matrix.platform }}' + path: | + jcef_build/macos_${{ matrix.platform }}.tar.gz + jcef_build/macos_${{ matrix.platform }}.tar.gz.sha256 + if-no-files-found: error