From 4eb64ff727af01f3735c485f3e959d9bb1461f6b Mon Sep 17 00:00:00 2001 From: 1zuna Date: Tue, 12 Mar 2024 02:25:51 +0100 Subject: [PATCH] macOS building --- .github/workflows/build-jcef.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build-jcef.yml b/.github/workflows/build-jcef.yml index c6f849d5..e6166edf 100644 --- a/.github/workflows/build-jcef.yml +++ b/.github/workflows/build-jcef.yml @@ -61,3 +61,33 @@ 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: + - name: Upload mask + run: echo "::add-mask::${{ secrets.UPLOAD_URL }}" + - uses: actions/checkout@v3 + - run: | + brew install ninja + brew install coreutils + brew install s3cmd + 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 + if: ${{ github.ref == 'refs/heads/master' }} + 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