|
29 | 29 | java-version: 11 |
30 | 30 | distribution: temurin |
31 | 31 | - name: Install system packages |
32 | | - # libcurl is needed for ktor-client-curl, libc-bin for orchestrator |
33 | | - run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libc-bin |
| 32 | + # libcurl is needed for ktor-client-curl |
| 33 | + run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev |
34 | 34 | - name: Retrieve Kotlin version |
35 | 35 | run: | |
36 | 36 | kv=$(cat gradle/libs.versions.toml | grep '^kotlin =' | awk -F'[=]' '{print $2}' | tr -d '" ') |
|
40 | 40 | with: |
41 | 41 | path: ~/.konan |
42 | 42 | key: ${{ runner.os }}-gradle-konan-${{ env.KOTLIN_VERSION }} |
43 | | - # https://gvisor.dev/docs/user_guide/install/ |
44 | | - - name: Install gvisor runsc runtime |
45 | | - run: | |
46 | | - ARCH=$(uname -m) |
47 | | - URL=https://storage.googleapis.com/gvisor/releases/release/latest/${ARCH} |
48 | | - wget -nv ${URL}/runsc ${URL}/runsc.sha512 \ |
49 | | - ${URL}/containerd-shim-runsc-v1 ${URL}/containerd-shim-runsc-v1.sha512 |
50 | | - sha512sum -c runsc.sha512 \ |
51 | | - -c containerd-shim-runsc-v1.sha512 |
52 | | - rm -f *.sha512 |
53 | | - chmod a+rx runsc containerd-shim-runsc-v1 |
54 | | - sudo mv runsc containerd-shim-runsc-v1 /usr/local/bin |
55 | | - sudo /usr/local/bin/runsc install |
56 | | - sudo systemctl reload docker |
57 | | - - uses: gradle/gradle-build-action@v2 |
| 43 | + - name: Build all (excluding tests for save-orchestrator-common) |
| 44 | + uses: gradle/gradle-build-action@v2 |
58 | 45 | with: |
59 | 46 | gradle-version: wrapper |
60 | 47 | gradle-home-cache-cleanup: true |
|
63 | 50 | -x detekt |
64 | 51 | -x spotlessCheck |
65 | 52 | -x :save-agent:linkDebugExecutableLinuxX64 |
| 53 | + -x :save-orchestrator-common:check |
| 54 | + -Pdetekt.multiplatform.disabled=true |
| 55 | + -PgprUser=${{ github.actor }} |
| 56 | + -PgprKey=${{ secrets.GITHUB_TOKEN }} |
| 57 | + --scan |
| 58 | + --build-cache |
| 59 | + - name: Check save-orchestrator-common |
| 60 | + uses: gradle/gradle-build-action@v2 |
| 61 | + with: |
| 62 | + gradle-version: wrapper |
| 63 | + gradle-home-cache-cleanup: true |
| 64 | + arguments: | |
| 65 | + :save-orchestrator-common:check |
| 66 | + -x detekt |
| 67 | + -x spotlessCheck |
| 68 | + -x :save-agent:linkDebugExecutableLinuxX64 |
66 | 69 | -Pdetekt.multiplatform.disabled=true |
67 | 70 | -PgprUser=${{ github.actor }} |
68 | 71 | -PgprKey=${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments