From 545db968cf39dec56a5f7b791dca9a8797a6e832 Mon Sep 17 00:00:00 2001 From: Gordon Woolbert Date: Wed, 6 Mar 2024 10:32:09 -0500 Subject: [PATCH] CI improvements --- .github/workflows/ci.yml | 31 ++++++++----------------------- .gitignore | 5 ++++- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c0f8eb..6cdc8ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,32 +23,17 @@ jobs: version-type: strict version-file: .tool-versions - - name: Restore the deps cache + - name: Restore the cache uses: actions/cache@v3 - id: deps-cache with: - path: deps - key: ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-deps-mixlockhash-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} + path: | + deps + _build + dialyzer + key: | + ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-mixlockhash-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} restore-keys: | - ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-deps- - - - name: Restore the _build cache - uses: actions/cache@v3 - id: build-cache - with: - path: _build - key: ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-build-mixlockhash-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - restore-keys: | - ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-build- - - - name: Restore the dialyzer cache - uses: actions/cache@v3 - id: dialyzer-cache - with: - path: dialyzer - key: ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-dialyzer - restore-keys: | - ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-dialyzer + ${{ runner.os }}-${{ steps.setup-elixir.outputs.elixir-version }}-${{ steps.setup-elixir.outputs.otp-version }}-mixlockhash- - name: Run CI run: | diff --git a/.gitignore b/.gitignore index 51c34f8..730cef4 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,7 @@ data_buffer-*.tar # Ignore Elixir Language Server files /.elixir_ls -/bench \ No newline at end of file +# Dialyzer generated PLT files +/dialyzer + +/bench