[Revert] Don't build for mac-x64 platform (#11) #291
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Sherlock Platform | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| push: | |
| branches: [ main, idea-251 ] | |
| pull_request: | |
| branches: [ main, idea-251 ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Allows to reuse this workflow | |
| workflow_call: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('build.txt') }} | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set JAVA_HOME | |
| run: echo "JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV | |
| - name: Grant execute permission to getPlugins.sh script | |
| run: chmod +x ./getPlugins.sh | |
| - name: Grant execute permission to build script | |
| run: chmod +x ./build_sherlock_platform.sh | |
| - name: Download Android artifacts | |
| run: ./getPlugins.sh --shallow | |
| - name: Build Sherlock Platform | |
| run: ./build_sherlock_platform.sh | |
| - name: Upload Sherlock Platform artifact for Linux | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sherlock-platform-linux | |
| path: out/sherlock-platform/artifacts/sherlock-platform.tar.gz | |
| - name: Upload Sherlock Platform artifact for Mac | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sherlock-platform-mac | |
| path: out/sherlock-platform/artifacts/sherlock-platform.mac.aarch64.zip | |
| - name: Upload Sherlock Platform artifact for Windows | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sherlock-platform-win | |
| path: out/sherlock-platform/artifacts/sherlock-platform.win.zip | |
| - name: Upload Sherlock Platform Sources | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sherlock-platform-sources | |
| path: out/sherlock-platform/artifacts/sherlock-platform-sources.zip |