Skip to content

Commit

Permalink
get rid of workflow specific caching as not needed with improved hand…
Browse files Browse the repository at this point in the history
…ling of the test environment
  • Loading branch information
seabbs committed Feb 12, 2024
1 parent 8f51ffb commit 20c8f22
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/install-julia/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,25 @@ runs:
key: julia-binary-${{ inputs.version }}
restore-keys: |
julia-binary-${{ inputs.version }}
- name: Install Julia
if: steps.cache-julia.outputs.cache-hit != 'true'
run: |
mkdir -p ~/julia
version=$(echo ${{ inputs.version }} | cut -d. -f1,2)
wget https://julialang-s3.julialang.org/bin/linux/x64/$version/julia-${{ inputs.version }}-linux-x86_64.tar.gz -O ~/julia/julia.tar.gz
shell: bash
- run: tar -xzf ~/julia/julia.tar.gz -C ~/julia --strip-components=1

- name: Unzip Julia
run: tar -xzf ~/julia/julia.tar.gz -C ~/julia --strip-components=1
shell: bash

- run: echo "$HOME/julia/bin" >> $GITHUB_PATH
shell: bash

- uses: actions/cache@v3
with:
path: |
~/.julia
~/.cache/julia
key: julia-${{ inputs.version }}-${{ github.workflow }}-${{ hashFiles('**/*.toml') }}
key: julia-${{ inputs.version }}-${{ hashFiles('**/*.toml') }}

0 comments on commit 20c8f22

Please sign in to comment.