Skip to content

Commit

Permalink
chore: improve build time of ci pipeline #311
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittstruck committed Jun 14, 2024
1 parent 76f9ce2 commit 396a243
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/on_push_branch__execute_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: on_push_branch__execute_ci_cd

on:
push:
branches: [master]
branches: [master, 311-chore-improve-build-time-of-ci-pipeline]
# See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
pull_request:
# Only branches and tags on the base are evaluated
Expand All @@ -26,12 +26,14 @@ jobs:
- uses: actions/cache@v4
id: cache
with:
path: deps
path: |
- deps
- _build
key: ${{ runner.os }}-mix-v4-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v4

- run: mix do local.hex --force, local.rebar --force
- run: mix deps.get
- run: mix deps.get && mix deps.compile
if: steps.cache.outputs.cache-hit != 'true'

check_mix_test:
Expand Down Expand Up @@ -76,7 +78,9 @@ jobs:

- uses: actions/cache@v4
with:
path: deps
path: |
- deps
- _build
key: ${{ runner.os }}-mix-v4-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v4

Expand All @@ -98,7 +102,9 @@ jobs:

- uses: actions/cache@v4
with:
path: deps
path: |
- deps
- _build
key: ${{ runner.os }}-mix-v4-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v4

Expand All @@ -118,7 +124,9 @@ jobs:

- uses: actions/cache@v4
with:
path: deps
path: |
- deps
- _build
key: ${{ runner.os }}-mix-v4-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v4

Expand All @@ -138,7 +146,9 @@ jobs:

- uses: actions/cache@v4
with:
path: deps
path: |
- deps
- _build
key: ${{ runner.os }}-mix-v4-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v4

Expand Down

0 comments on commit 396a243

Please sign in to comment.