Skip to content

Commit

Permalink
[CI] Use julia-actions/setup-julia and julia-actions/cache (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Jan 4, 2025
1 parent cba5e84 commit d60d473
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/BumpStdlibs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: BumpStdlibs

on:
workflow_dispatch:
inputs:
Expand All @@ -20,12 +21,15 @@ on:
type: boolean
required: true
default: false

jobs:
BumpStdlibs:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
- uses: julia-actions/cache@v2
- run: echo "BUMPSTDLIBS_STDLIBS_TO_INCLUDE is ${{ github.event.inputs.BUMPSTDLIBS_STDLIBS_TO_INCLUDE }}"
- run: git config --global user.name "Dilum Aluthge"
- run: git config --global user.email "[email protected]"
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI

on:
# pull_request: # we use Bors
push:
Expand All @@ -8,9 +9,11 @@ on:
- trying
tags: '*'
workflow_dispatch:

concurrency:
group: integration-tests-global-lock
cancel-in-progress: ${{ (github.ref == 'refs/heads/staging') || (github.ref == 'refs/heads/trying') }}

jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -32,16 +35,7 @@ jobs:
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- 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 }}-
- uses: julia-actions/cache@v2
- run: git config --global user.name "Dilum Aluthge"
- run: git config --global user.email "[email protected]"
- uses: julia-actions/julia-buildpkg@v1
Expand Down

0 comments on commit d60d473

Please sign in to comment.