Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo project does not use cache #38

Merged
merged 2 commits into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/actions/setup-beam-with-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ inputs:
rebar3-version:
description: Rebar3 version (string)
required: true
rebar-lock-path:
description: Path of `rebar.lock` (string)
required: true
overwrite:
description: Whether to overwrite the cache (bool string)
required: false
Expand All @@ -28,7 +25,7 @@ runs:
id: cache-no-overwrite
if: ${{ inputs.overwrite != 'true' }}
with:
key: ${{ runner.os }}-otp-${{ inputs.otp-version }}-rebar3-${{ inputs.rebar3-version }}-${{ hashFiles(inputs.rebar-lock-path) }}
key: ${{ runner.os }}-otp-${{ inputs.otp-version }}-rebar3-${{ inputs.rebar3-version }}-${{ hashFiles('rebar.lock') }}
path: |
~/.cache/rebar3
_build
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"

- run: rebar3 xref
- run: rebar3 dialyzer
Expand All @@ -55,7 +54,6 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"

- name: Run sample-based-tests
run: rebar3 do eunit, ct
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/create-cache-periodically.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"
overwrite: "true"
6 changes: 2 additions & 4 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-beam-with-cache/
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./demo/rebar.lock"

- name: Demonstrate with polynomial_time_without_correctness
run: |
Expand Down Expand Up @@ -58,11 +57,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-beam-with-cache/
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./demo/rebar.lock"

- name: Demonstrate with exp_time_with_correctness
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
otp-version: ${{ env.otp }}
rebar3-version: ${{ env.rebar3 }}
rebar-lock-path: "./rebar.lock"

- name: Run property-based tests
run: rebar3 proper -n 1000