Skip to content

Bump julia-actions/cache from 2.0.4 to 2.0.5 #166

Bump julia-actions/cache from 2.0.4 to 2.0.5

Bump julia-actions/cache from 2.0.4 to 2.0.5 #166

Workflow file for this run

name: CI
on:
merge_group:
pull_request:
push:
branches:
- main
tags:
- "*"
concurrency:
# Skip intermediate builds: all builds except for builds on the `master` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
actions: write
contents: read
jobs:
finalize:
timeout-minutes: 10
needs: [test, isolated-tests]
if: always()
runs-on: ubuntu-latest
steps:
- run: |
echo test-bundle: ${{ needs.test.result }}
echo isolated-tests: ${{ needs.isolated-tests.result }}
- run: exit 1
if: |
(needs.test.result != 'success') ||
(needs.isolated-tests.result != 'success')
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
version:
- "1.10"
os:
- macos-latest
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: julia-actions/install-juliaup@f45b6da2c56048cbc8bc7f570b5f3de155361455 # v2.1.2
with:
channel: "${{ matrix.version }}"
- uses: julia-actions/cache@824243901fb567ccb490b0d0e2483ccecde46834 # v2.0.5
- uses: julia-actions/julia-buildpkg@90dd6f23eb49626e4e6612cb9d64d456f86e6a1c # v1.6.0
- uses: julia-actions/julia-runtest@d0c4f093badade621cd041bba567d1e832480ac2 # v1.10.0
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: bundle-${{ matrix.os }}
path: test/build/LocalCustomRegistry
include-hidden-files: true
isolated-tests:
needs: [test]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
version:
- "1.10"
os:
- macos-latest
- ubuntu-latest
- windows-latest
bundle:
- bundle-macos-latest
- bundle-ubuntu-latest
- bundle-windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- uses: julia-actions/install-juliaup@f45b6da2c56048cbc8bc7f570b5f3de155361455 # v2.1.2
with:
channel: "${{ matrix.version }}"
- uses: julia-actions/cache@824243901fb567ccb490b0d0e2483ccecde46834 # v2.0.5
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: ${{ matrix.bundle }}
path: ${{ matrix.bundle }}
- name: Initialize Julia Depot
run: julia -e 'import Pkg; Pkg.status()'
- name: Install bundle
run: julia ${{ matrix.bundle }}/registry/install.jl
- name: Installing the same bundle again should uninstall and reinstall
run: julia ${{ matrix.bundle }}/registry/install.jl
- name: Instantiate scripts project
run: julia --startup-file=no --project=test/scripts -e 'import Pkg; Pkg.instantiate()'
- name: Verify bundle
run: julia --startup-file=no --project=test/scripts test/scripts/verify.jl
- name: Remove bundle
run: julia --startup-file=no --project=test/scripts test/scripts/remove.jl
if: always()