Skip to content

Commit

Permalink
ci: map java sdk to docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Jun 29, 2022
1 parent f541d6c commit a63cb90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
-v ${{ github.workspace }}:/sentry-unity \
-v /usr/share/dotnet:/usr/share/dotnet \
-v /opt/microsoft/powershell/7:/opt/microsoft/powershell/7 \
-v /usr/local/lib/android/sdk:/usr/local/lib/android/sdk \
-v ${{ env.ANDROID_HOME }}:${{ env.ANDROID_HOME }} \
-v ${{ env.JAVA_HOME_17_X64 }}:${{ env.JAVA_HOME_17_X64 }} \
--workdir /sentry-unity $image
docker exec unity ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
docker exec unity ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:
echo '${{ secrets.UNITY_LICENSE_SERVER_CONFIG }}' | docker exec -i unity sh -c "cat > /usr/share/unity3d/config/services-config.json"
- name: Build Sentry.Unity Solution
run: docker exec unity dotnet build /p:AndroidSdkDirectory=/usr/local/lib/android/sdk -c Release
run: docker exec unity dotnet build /p:AndroidSdkDirectory=${{ env.ANDROID_HOME }} /p:JavaSdkDirectory=${{ env.JAVA_HOME_17_X64 }} -c Release

- name: Assembly alias
run: |
Expand Down

0 comments on commit a63cb90

Please sign in to comment.