Skip to content

Commit

Permalink
chore: Use more the local cache :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Feb 21, 2025
1 parent 0e76e5d commit c74549d
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/build-dotty.yml

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,65 @@ env:
# text on stderr and so can break tests which check the output of a program).

jobs:
build-non-bootstrapped:
name: Build Non-Bootstrapped Compiler
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
steps:
- name: Set JDK 17 as default
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
- name: Checkout cleanup script
uses: actions/checkout@v4
- name: Cleanup
run: .github/workflows/cleanup.sh
- name: Git Checkout
uses: actions/checkout@v4
- name: Add SBT proxy repositories
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
- name: Compile Non-Bootstrapped Dotty
run: ./project/scripts/sbt "; clean; compile"

build-bootstrapped:
name: Build Bootstrapped Compiler
needs: build-non-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
steps:
- name: Set JDK 17 as default
run: echo "/usr/lib/jvm/java-17-openjdk-amd64/bin" >> $GITHUB_PATH
- name: Checkout cleanup script
uses: actions/checkout@v4
- name: Cleanup
run: .github/workflows/cleanup.sh
- name: Git Checkout
uses: actions/checkout@v4
- name: Add SBT proxy repositories
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
- name: Compile Bootstrapped Dotty
run: ./project/scripts/sbt "; clean; scala3-bootstrapped/compile"

test_non_bootstrapped:
needs: build-non-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -106,11 +159,13 @@ jobs:
./project/scripts/cmdTests
test:
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -166,11 +221,13 @@ jobs:
run: ./project/scripts/sbt ";set ThisBuild/Build.scala2Library := Build.Scala2LibraryCCTasty; scala2-library-cc/compile; scala2-library-cc-tasty/compile; scala3-bootstrapped/testCompilation i3"

test_scala2_library_tasty:
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -293,11 +350,13 @@ jobs:

mima:
name: MiMa
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -344,11 +403,13 @@ jobs:
./project/scripts/scala2-library-tasty-mima.sh
community_build_a:
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -401,11 +462,13 @@ jobs:
run: cat community-build/dotty-community-build-deps || true

community_build_b:
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -458,11 +521,13 @@ jobs:
run: cat community-build/dotty-community-build-deps || true

community_build_c:
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -515,11 +580,13 @@ jobs:
run: cat community-build/dotty-community-build-deps || true

test_sbt:
needs: build-bootstrapped
runs-on: [self-hosted, Linux]
container:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -565,6 +632,7 @@ jobs:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -625,6 +693,7 @@ jobs:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down Expand Up @@ -696,6 +765,7 @@ jobs:
image: lampepfl/dotty:2024-10-18
options: --cpu-shares 4096
volumes:
- /nfs-cache/.develocity/build-cache:/root/.sbt/1.0/.develocity/build-cache
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
- ${{ github.workspace }}/../../cache/general:/root/.cache
Expand Down

0 comments on commit c74549d

Please sign in to comment.