Skip to content

Commit

Permalink
Try to set up caching of submodule outputs on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Dec 4, 2023
1 parent 3fe3274 commit cb493c1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ jobs:
with:
distribution: temurin
java-version: 21
- name: Get submodule status hash
id: get-submodules
run: echo "submodules=$(git submodule status | sha256sum | awk '{print $1}')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
./dependencies/**/target
key: ${{ runner.os }}-${{ steps.get-submodules.outputs.submodules }}
- name: Build dependencies
run: ./dependencies/publish-deps.sh --scala-native-only
run: ./dependencies/publish-deps.sh
- name: Test
run: sbt rootJVM/test
test-native:
Expand All @@ -37,6 +45,14 @@ jobs:
with:
distribution: temurin
java-version: 19
- name: Get submodule status hash
id: get-submodules
run: echo "submodules=$(git submodule status | sha256sum | awk '{print $1}')" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
./dependencies/**/target
key: ${{ runner.os }}-${{ steps.get-submodules.outputs.submodules }}
- name: Build dependencies
run: ./dependencies/publish-deps.sh
- name: Install scala-native dependencies
Expand Down

0 comments on commit cb493c1

Please sign in to comment.