Skip to content

Commit

Permalink
Special tactics
Browse files Browse the repository at this point in the history
  • Loading branch information
webbertakken committed Oct 20, 2020
1 parent 9fab31b commit e510db8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/new-editor-image-requested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
fail-fast: false
matrix:
targetPlatform:
- base # Base is a special name, which indicates that no modules are installed, like with linux-mono on ubuntu
- linux-il2cpp
- windows-mono
- mac-mono
Expand All @@ -38,6 +39,18 @@ jobs:
echo "repoVersion (full): ${{ github.event.client_payload.repoVersionFull }}"
echo "repoVersion (only minor and major): ${{ github.event.client_payload.repoVersionMinor }}"
echo "repoVersion (only major): ${{ github.event.client_payload.repoVersionMajor }}"
- name: Special tactics
run: |
editorVersion="${{ github.event.client_payload.editorVersion }}"
# For any editor version before 2019.3.0
if [[ "$editorVersion" == 201* ]] && [[ "$editorVersion" != 2019.3.* ]] && [[ "$editorVersion" != 2019.4.* ]] ; then
# skip linux-il2cpp build
if [[ "${{ matrix.targetPlatform }}" == "linux-il2cpp" ]] ; then
exit 0;
fi
fi
- name: Report new build
uses: ./.github/workflows/actions/report-to-backend
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
matrix:
targetPlatform:
# This list of target platforms is based on Ubuntu as a base platform
- base

# Linux Build Support
# - linux-mono # May not exist in newer versions / May be default for Ubuntu
Expand Down
6 changes: 5 additions & 1 deletion editor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ RUN unity-hub install --version "$version" --changeset "$changeSet" | grep 'Erro

# Install modules for that editor
ARG module="non-existent-module"
RUN unity-hub install-modules --version "$version" --module "$module" --childModules | grep 'Missing module' | exit $(wc -l)
RUN if [[ "$module" == "base" ]] ; then \
echo "running default modules for this baseOs" ; \
else \
unity-hub install-modules --version "$version" --module "$module" --childModules | grep 'Missing module' | exit $(wc -l) ; \
fi

###########################
# Editor #
Expand Down

0 comments on commit e510db8

Please sign in to comment.