Skip to content

Commit 3aeb682

Browse files
authored
Cache only default profile directory on build (#20)
Turns out rebar3 skips updating test-only dependencies even if their refs changed in `rebar.config`.
1 parent 9672d4d commit 3aeb682

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/erlang-parallel-build.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,15 @@ jobs:
8585
generator-version: ${{ inputs.erlang-generator-version }}
8686

8787
- name: Cache _build
88-
uses: actions/cache@v2
88+
uses: actions/cache@v3
8989
with:
90-
path: _build/*/lib
90+
path: _build/default/lib
9191
key: ${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-${{ hashFiles('rebar.lock') }}
9292
restore-keys: |
9393
${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-
9494
9595
- name: Compile
96-
run: |
97-
rebar3 compile
98-
rebar3 as test compile
96+
run: rebar3 compile
9997

10098
check:
10199
name: Check
@@ -125,9 +123,9 @@ jobs:
125123
generator-version: ${{ inputs.erlang-generator-version }}
126124

127125
- name: Cache _build
128-
uses: actions/cache@v2
126+
uses: actions/cache@v3
129127
with:
130-
path: _build/*/lib
128+
path: _build/default/lib
131129
key: ${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-${{ hashFiles('rebar.lock') }}
132130
restore-keys: |
133131
${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-
@@ -169,15 +167,15 @@ jobs:
169167
generator-version: ${{ inputs.erlang-generator-version }}
170168

171169
- name: Cache _build
172-
uses: actions/cache@v2
170+
uses: actions/cache@v3
173171
with:
174-
path: _build/*/lib
172+
path: _build/default/lib
175173
key: ${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-${{ hashFiles('rebar.lock') }}
176174
restore-keys: |
177175
${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-
178176
179177
- name: Cache PLTs
180-
uses: actions/cache@v2
178+
uses: actions/cache@v3
181179
with:
182180
path: _build/test/rebar3_*_plt
183181
key: ${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-plt-${{ hashFiles('rebar.lock') }}
@@ -215,9 +213,9 @@ jobs:
215213
generator-version: ${{ inputs.erlang-generator-version }}
216214

217215
- name: Cache _build
218-
uses: actions/cache@v2
216+
uses: actions/cache@v3
219217
with:
220-
path: _build/*/lib
218+
path: _build/default/lib
221219
key: ${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-${{ hashFiles('rebar.lock') }}
222220
restore-keys: |
223221
${{ inputs.cache-version }}-${{ runner.os }}-otp-${{ inputs.otp-version }}-build-

0 commit comments

Comments
 (0)