Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
runs-on: arc-runners-large
timeout-minutes: 60
strategy:
# The runner pods have no memory limit and share 16 GB nodes, so both jobs can land on one node.
# Two of these builds don't fit in its memory: the node kills the pod of the job that is further along,
# and GitHub reports "The self-hosted runner lost communication with the server". Run them one at a time.
max-parallel: 1
matrix:
environmentName:
- 261
Expand All @@ -40,6 +44,16 @@ jobs:
BASE_VERSION=$(grep '^pluginVersion=' gradle.properties | cut -d'=' -f2)
echo "VERSION=${BASE_VERSION}.${{ github.run_number }}" >> $GITHUB_ENV

# After compilation, the Gradle daemon and the idle Kotlin compiler daemons hold ~5 GB that tests don't need.
# Stopping them leaves room on the node for jobs of other workflow runs.
- name: Compile
run: ./gradlew :intellij-plugin:testClasses :hs-edu-format:testClasses :hs-framework-storage:testClasses -PenvironmentName=${{ matrix.environmentName }} -PpluginVersion=${{ env.VERSION }}

- name: Stop build daemons
run: |
./gradlew --stop
pkill -f org.jetbrains.kotlin.daemon.KotlinCompileDaemon || true

- name: Run tests
run: ./gradlew :intellij-plugin:test :hs-edu-format:test :hs-framework-storage:test -PenvironmentName=${{ matrix.environmentName }} -PpluginVersion=${{ env.VERSION }}

Expand Down
Loading