Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 1423abd

Browse files
GH actions updates following recent deprecation (#869)
1 parent ae88e95 commit 1423abd

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/coreneuron-ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
shell: bash
8282

8383
- name: Set up Python3
84-
uses: actions/setup-python@v3
84+
uses: actions/setup-python@v4
8585
with:
8686
python-version: ${{ env.PYTHON_VERSION }}
8787
env:
@@ -118,9 +118,21 @@ jobs:
118118
echo matrix.config JSON:
119119
cat matrix.json
120120
echo -----
121-
121+
122+
# Workaround for https://github.com/actions/cache/issues/92
123+
- name: Checkout cache action
124+
uses: actions/checkout@v3
125+
with:
126+
repository: actions/cache
127+
ref: v3
128+
path: tmp/actions/cache
129+
130+
- name: Make actions/cache@v3 run even on failure
131+
run: |
132+
sed -i'.bak' -e '/ post-if: /d' tmp/actions/cache/action.yml
133+
122134
- name: Restore compiler cache
123-
uses: pat-s/always-upload-cache@v3
135+
uses: ./tmp/actions/cache
124136
with:
125137
path: |
126138
${{runner.workspace}}/ccache

0 commit comments

Comments
 (0)