"wrappers/vscode:/vscode.git/clone" did not exist on "81271f93abeca82af709e1b288b2fc4aa0c272d5"
Unverified Commit e8282ad5 authored by bdenhollander's avatar bdenhollander Committed by GitHub
Browse files

Fix CI deprecation warnings (#4282)

Fix CI deprecation warnings

- Upgrade actions/checkout to v3 and actions/cache to v3.3.2 to address node.js 12 warnings
- https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
- Replace usages of set-output with `>> $GITHUB_OUTPUT` for Unix and `>> %GITHUB_OUTPUT` for Windows
parent 335820cc
...@@ -160,7 +160,7 @@ jobs: ...@@ -160,7 +160,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2 - uses: conda-incubator/setup-miniconda@v2
name: "Prepare base dependencies (M1)" name: "Prepare base dependencies (M1)"
...@@ -216,14 +216,14 @@ jobs: ...@@ -216,14 +216,14 @@ jobs:
id: prepare-ccache id: prepare-ccache
shell: bash -l {0} shell: bash -l {0}
run: | run: |
echo "::set-output name=key::$(echo "${{ matrix.name }}" | tr -d ' .')" echo "key=$(echo "${{ matrix.name }}" | tr -d ' .')" >> $GITHUB_OUTPUT
echo "::set-output name=timestamp::$(date +%Y%m%d-%H%M%S)" echo "timestamp=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_OUTPUT
ccache -p ccache -p
ccache -z ccache -z
- name: "Restore ccache" - name: "Restore ccache"
uses: actions/cache@v1.1.0 uses: actions/cache@v3.3.2
with: with:
path: .ccache path: .ccache
key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }} key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }}
...@@ -347,7 +347,7 @@ jobs: ...@@ -347,7 +347,7 @@ jobs:
-DOPENMM_BUILD_EXAMPLES=ON ^ -DOPENMM_BUILD_EXAMPLES=ON ^
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2 - uses: conda-incubator/setup-miniconda@v2
name: "Prepare base dependencies" name: "Prepare base dependencies"
...@@ -373,14 +373,14 @@ jobs: ...@@ -373,14 +373,14 @@ jobs:
set name=%name:.=% set name=%name:.=%
for /f "usebackq tokens=*" %%a in (`%CONDA_PREFIX%\Library\usr\bin\date.exe +%%Y%%m%%d-%%H%%M%%S`) do set "timestamp=%%a" for /f "usebackq tokens=*" %%a in (`%CONDA_PREFIX%\Library\usr\bin\date.exe +%%Y%%m%%d-%%H%%M%%S`) do set "timestamp=%%a"
echo ::set-output name=key::%name% echo key=%name%>> %GITHUB_OUTPUT%
echo ::set-output name=timestamp::%timestamp% echo timestamp=%timestamp%>> %GITHUB_OUTPUT%
ccache -p ccache -p
ccache -z ccache -z
- name: "Restore ccache" - name: "Restore ccache"
uses: actions/cache@v1.1.0 uses: actions/cache@v3.3.2
with: with:
path: .ccache path: .ccache
key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }} key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }}
...@@ -484,7 +484,7 @@ jobs: ...@@ -484,7 +484,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
# Following bits adapted from conda-forge Azure configs. # Following bits adapted from conda-forge Azure configs.
# If it stops working, check any feedstock with ppc64le or aarch64 # If it stops working, check any feedstock with ppc64le or aarch64
...@@ -517,11 +517,11 @@ jobs: ...@@ -517,11 +517,11 @@ jobs:
id: prepare-ccache id: prepare-ccache
shell: bash -l {0} shell: bash -l {0}
run: | run: |
echo "::set-output name=key::$(echo "${{ matrix.name }}" | tr -d ' .')" echo "key=$(echo "${{ matrix.name }}" | tr -d ' .')" >> $GITHUB_OUTPUT
echo "::set-output name=timestamp::$(date +%Y%m%d-%H%M%S)" echo "timestamp=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_OUTPUT
- name: "Restore ccache" - name: "Restore ccache"
uses: actions/cache@v1.1.0 uses: actions/cache@v3.3.2
with: with:
path: .ccache path: .ccache
key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }} key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }}
...@@ -559,7 +559,7 @@ jobs: ...@@ -559,7 +559,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2 - uses: conda-incubator/setup-miniconda@v2
name: "Prepare base dependencies" name: "Prepare base dependencies"
...@@ -586,14 +586,14 @@ jobs: ...@@ -586,14 +586,14 @@ jobs:
id: prepare-ccache id: prepare-ccache
shell: bash -l {0} shell: bash -l {0}
run: | run: |
echo "::set-output name=key::$(echo "${{ matrix.name }}" | tr -d ' .')" echo "key=$(echo "${{ matrix.name }}" | tr -d ' .')" >> $GITHUB_OUTPUT
echo "::set-output name=timestamp::$(date +%Y%m%d-%H%M%S)" echo "timestamp=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_OUTPUT
ccache -p ccache -p
ccache -z ccache -z
- name: "Restore ccache" - name: "Restore ccache"
uses: actions/cache@v1.1.0 uses: actions/cache@v3.3.2
with: with:
path: .ccache path: .ccache
key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }} key: ccache-${{ secrets.CACHE_VERSION }}-${{ steps.prepare-ccache.outputs.key }}-${{ steps.prepare-ccache.outputs.timestamp }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment