chore: more workflow fixes #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }}-writecache | |
cancel-in-progress: true | |
name: Write Cache | |
jobs: | |
write-cache: | |
name: Write Cache | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Init Hermit | |
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 | |
run: go mod download -x | |
- name: Save Go Modules Cache | |
id: cache-go-modules | |
uses: actions/cache/save@v4 | |
with: | |
path: ~/go/pkg/mod | |
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 |