Skip to content

Commit

Permalink
Add compilation cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Nov 17, 2023
1 parent 8a29fae commit 8a36f0f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,36 @@ jobs:
matrix:
version:
- '1.9'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v3

# Cache step
- name: Cache Julia packages
uses: actions/cache@v2
with:
path: ~/.julia
key: ${{ runner.os }}-julia-${{ matrix.version }}-${{ hashFiles('**/Project.toml', '**/Manifest.toml') }}
restore-keys: |
${{ runner.os }}-julia-${{ matrix.version }}-
${{ runner.os }}-julia-
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
# This step uses a GitHub Action and does not require a `run` command

- name: Install Xvfb
run: sudo apt-get install -y xvfb

- name: Run tests with Xvfb
run: xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.test()'

- uses: julia-actions/julia-processcoverage@v1

- uses: codecov/codecov-action@v3
with:
files: lcov.info

0 comments on commit 8a36f0f

Please sign in to comment.