diff --git a/.github/actions/build-cache/action.yml b/.github/actions/build-cache/action.yml index 307c2e91c0..9a7f2560e4 100644 --- a/.github/actions/build-cache/action.yml +++ b/.github/actions/build-cache/action.yml @@ -9,11 +9,11 @@ runs: uses: actions/cache/restore@v4 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-{{ hashFiles('**/go.sum') }}-go + key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}-go - name: Restore Maven Modules Cache id: cache-maven uses: actions/cache/restore@v4 with: path: ~/.m2/repository - key: ${{ runner.os }}-{{ hashFiles('**/pom.xml') }}-maven + key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}-maven diff --git a/.github/workflows/writecache.yml b/.github/workflows/writecache.yml index 86b100a720..d38e37858f 100644 --- a/.github/workflows/writecache.yml +++ b/.github/workflows/writecache.yml @@ -14,6 +14,14 @@ jobs: uses: cashapp/activate-hermit@v1 - name: Build Cache uses: ./.github/actions/build-cache + - name: Docker Compose + run: docker compose up -d --wait + - name: Init DB + run: ftl-initdb + - name: Clean All + run: bit -c + - name: Rebuild All + run: bit - name: Download Maven Dependencies run: mvn dependency:resolve --batch-mode - name: Download Go Dependencies @@ -23,10 +31,10 @@ jobs: uses: actions/cache/save@v4 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-{{ hashFiles('**/go.sum') }}-go + key: ${{ runner.os }}-${{ hashFiles('**/go.sum') }}-go - name: Save Maven Modules Cache id: cache-maven uses: actions/cache/save@v4 with: path: ~/.m2/repository - key: ${{ runner.os }}-{{ hashFiles('**/pom.xml') }}-maven + key: ${{ runner.os }}-${{ hashFiles('**/pom.xml') }}-maven