From 7e7bc54636f7b144da275a99ec55a9287aeb793f Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" <744411+ViralBShah@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:24:19 -0400 Subject: [PATCH] Update ci.yml for Mac aarch64 and use Julia-actions/cache to improve caching (#199) * Update ci.yml for Mac aarch64 `macOS-latest` is now aarch64 - so separate out that build recipe in an include to make sure it picks the right architecture. Otherwise, it is just testing x64 in emulation on ARM. macOS-13 is x64 (but I am not sure if it is native or not). We could probably drop that too, since Apple stopped shipping those a few years ago - but people do still have them. * Run lesser CI * Add 15 minute timeout --- .github/workflows/ci.yml | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0556c73c..a68e902c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,35 +18,33 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} + timeout-minutes: 15 strategy: fail-fast: false matrix: version: - - 'lts' - - '1.11' + - '1' os: - - macOS-latest - macOS-13 # with intel processors - ubuntu-latest arch: - x64 + include: + - os: macOS-latest + arch: aarch64 + version: 1 + - os: ubuntu-latest + arch: x64 + version: 'lts' + steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' - - uses: actions/cache@v4 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@latest - uses: julia-actions/julia-runtest@latest - \ No newline at end of file +