Build #17
Workflow file for this run
This file contains 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: EDM4U build | |
on: | |
workflow_dispatch: | |
inputs: | |
unity_version: | |
description: 'Unity version' | |
default: '2019' | |
required: true | |
type: string | |
jobs: | |
build_desktop: | |
name: build-macOS-unity${{ inputs.unity_version}} | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python3 --version | |
# Remove other python installs before installing the version we want | |
- name: Remove other pythons | |
shell: bash | |
run: | | |
ls -l /usr/local/bin | grep /Library/Frameworks/Python.framework/Versions/3 | awk '{print "sudo rm \47/usr/local/bin/" $9 "\47"}' | |
ls -d /Library/Frameworks/Python.framework/Versions/3.* 2> /dev/null | awk '{print "sudo rm -rf \47" $0 "\47"}' | |
ls -d /Applications/Python\ 3.* 2> /dev/null | awk '{print "sudo rm -rf \47" $0 "\47"}' | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- run: python3 --version | |
- name: Install python deps | |
shell: bash | |
run: | | |
pip install -r gha/requirements.txt | |
- id: unity_setup | |
uses: ./gha/unity | |
timeout-minutes: 30 | |
with: | |
version: ${{ inputs.unity_version }} | |
platforms: "ANDROID,IOS,PLAYMODE,MACOS" | |
- run: | | |
echo '${{ env.UNITY_VERSION }}' | |
echo '${{ env.UNITY_ROOT_DIR }}' | |
- run: ls '${{ env.UNITY_ROOT_DIR }}/PlaybackEngines' | |
- name: Set Unity Env | |
shell: bash | |
run: echo "UNITY_EXE=${{ env.UNITY_ROOT_DIR }}/Unity.app/Contents/MacOS/Unity" >> $GITHUB_ENV | |
- run: echo '${{ env.UNITY_EXE }}' | |
# - run: ./gradlew build |