From 8a36f0f92dc797db3eaeef9984f5afa6f0d341f6 Mon Sep 17 00:00:00 2001 From: anton083 Date: Fri, 17 Nov 2023 21:53:55 +0100 Subject: [PATCH] Add compilation cache --- .github/workflows/CI.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9ef866f..a76a8c6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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