Skip to content

Commit

Permalink
try caching
Browse files Browse the repository at this point in the history
Signed-off-by: osamamagdy <[email protected]>
  • Loading branch information
osamamagdy committed May 7, 2024
1 parent 73067b7 commit c19e41b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,21 @@ jobs:
DOCKER_BUILD_OPTS="--build-arg UBUNTU_VERSION=${{ matrix.os-version }} --build-arg UBUNTU_NAME=${{ matrix.os-name }}" \
make -C utils/docker pull pull-dev
- name: Create dependencies folder if not exist
run: mkdir -p dependencies

- name: Cache Go dependencies
uses: actions/cache@v2
with:
path: dependencies/
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: run make inside dev container
env:
DOCKER_DEV_CI_MODE: 1
DOCKER_QUIET_BUILD: 1
run: |
DOCKER_DEV_RUN_OPTS="-v dependencies/:/project/pkg/mod/"
DOCKER_BUILD_OPTS="--build-arg UBUNTU_VERSION=${{ matrix.os-version }} --build-arg UBUNTU_NAME=${{ matrix.os-name }}" \
make -C utils/docker run-dev DOCKER_DEV_OPTIONAL_CMD='env IS_CI_RUNNING=true \
make all'
Expand Down

0 comments on commit c19e41b

Please sign in to comment.