Skip to content

Commit 011a0ee

Browse files
committed
ci: bump version of checkout and cache action
Some workflows fail because they uses a deprecated version 3 of `actions/cache`. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
1 parent 638cad6 commit 011a0ee

12 files changed

Lines changed: 53 additions & 52 deletions

.github/workflows/ci-linting.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ on:
1010
release:
1111
types:
1212
- created
13+
1314
jobs:
1415
build:
1516
runs-on: ubuntu-22.04
1617
name: "Linux Linting"
1718
steps:
1819
- name: Checkout
19-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2021

2122
- name: "Installing dependencies"
2223
run: |
@@ -43,7 +44,7 @@ jobs:
4344

4445
- name: Trunk cache
4546
id: cache-trunk
46-
uses: actions/cache@v3.0.4
47+
uses: actions/cache@v4
4748
with:
4849
path: ~/.cache/trunk/
4950
key: ${{ runner.os }}-trunk

.github/workflows/ci-linux-on-main-pr.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: "Linux CI"
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{github.event.pull_request.head.ref}}
2323
repository: ${{github.event.pull_request.head.repo.full_name}}
@@ -30,12 +30,12 @@ jobs:
3030
sudo apt-get remove -y clang-13 llvm-13 clang-format-13 clang-tidy-13 clang-12 llvm-12 clang-format-12 clang-tidy-12
3131
sudo apt install -y --no-install-recommends clang-14 llvm-14 clang-format-14 clang-tidy-14
3232
sudo apt-get install -y nodejs npm
33-
sudo apt install -y python3 python3-pip
33+
sudo apt install -y python3 python3-pip
3434
sudo ln -s /usr/lib/llvm-14/bin/opt /usr/bin/opt
35-
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
36-
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.24.201332
35+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
36+
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.24.201332
3737
git submodule update --init --recursive
38-
pip install -r requirements.txt
38+
pip install -r requirements.txt
3939
npm install -g prettier@2.2.1
4040
env:
4141
DEBIAN_FRONTEND: noninteractive
@@ -60,8 +60,8 @@ jobs:
6060
- name: "Running Q# tests"
6161
run: |
6262
git clone https://github.com/microsoft/Quantum.git
63-
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
64-
export QSHARP_SAMPLES=${PWD}/Quantum/samples
63+
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
64+
export QSHARP_SAMPLES=${PWD}/Quantum/samples
6565
6666
pushd qir/qsharp-tests/
6767
pip3 install --user pytest
@@ -75,7 +75,7 @@ jobs:
7575
make -j qat
7676
popd
7777
78-
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
78+
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
7979
pip install pytest
8080
pip install -r requirements.txt
8181
cd qir/qir-tests/

.github/workflows/ci-mac-on-main-pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: "Mac CI"
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{github.event.pull_request.head.ref}}
2323
repository: ${{github.event.pull_request.head.repo.full_name}}
@@ -64,8 +64,8 @@ jobs:
6464
- name: "Running Q# tests"
6565
run: |
6666
git clone https://github.com/microsoft/Quantum.git
67-
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
68-
export QSHARP_SAMPLES=${PWD}/Quantum/samples
67+
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
68+
export QSHARP_SAMPLES=${PWD}/Quantum/samples
6969
7070
pushd qir/qsharp-tests/
7171
pip3 install --user pytest
@@ -79,7 +79,7 @@ jobs:
7979
make -j qat
8080
popd
8181
82-
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
82+
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
8383
pip3 install pytest
8484
pip3 install -r requirements.txt
8585
cd qir/qir-tests/
@@ -122,7 +122,7 @@ jobs:
122122
echo "Done"
123123
124124
export PYTHONPATH=$PWD/qiskit-qir/tests:$PYTHONPATH
125-
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
125+
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
126126
127127
pushd qir/qiskit-tests/
128128
pip3 install pytest

.github/workflows/ci-on-pr-bazel-test-mac.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
name: "Bazel Debug Build"
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{github.event.pull_request.head.ref}}
2323
repository: ${{github.event.pull_request.head.repo.full_name}}
2424

2525
- name: Bazel cache
2626
id: cache-bazel-debug
27-
uses: actions/cache@v3.0.4
27+
uses: actions/cache@v4
2828
with:
2929
path: ~/.cache/bazel/
3030
key: ${{ runner.os }}-bazel-debug
@@ -41,14 +41,14 @@ jobs:
4141
name: "Bazel Release Build"
4242
steps:
4343
- name: Checkout code
44-
uses: actions/checkout@v2
44+
uses: actions/checkout@v4
4545
with:
4646
ref: ${{github.event.pull_request.head.ref}}
4747
repository: ${{github.event.pull_request.head.repo.full_name}}
4848

4949
- name: Bazel cache
5050
id: cache-bazel-release
51-
uses: actions/cache@v3.0.4
51+
uses: actions/cache@v4
5252
with:
5353
path: ~/.cache/bazel/
5454
key: ${{ runner.os }}-bazel-release
@@ -66,14 +66,14 @@ jobs:
6666
needs: [build-debug]
6767
steps:
6868
- name: Checkout code
69-
uses: actions/checkout@v2
69+
uses: actions/checkout@v4
7070
with:
7171
ref: ${{github.event.pull_request.head.ref}}
7272
repository: ${{github.event.pull_request.head.repo.full_name}}
7373

7474
- name: Bazel cache
7575
id: cache-bazel-debug
76-
uses: actions/cache@v3.0.4
76+
uses: actions/cache@v4
7777
with:
7878
path: ~/.cache/bazel/
7979
key: ${{ runner.os }}-bazel-debug
@@ -91,14 +91,14 @@ jobs:
9191
needs: [build-release]
9292
steps:
9393
- name: Checkout code
94-
uses: actions/checkout@v2
94+
uses: actions/checkout@v4
9595
with:
9696
ref: ${{github.event.pull_request.head.ref}}
9797
repository: ${{github.event.pull_request.head.repo.full_name}}
9898

9999
- name: Bazel cache
100100
id: cache-bazel-release
101-
uses: actions/cache@v3.0.4
101+
uses: actions/cache@v4
102102
with:
103103
path: ~/.cache/bazel/
104104
key: ${{ runner.os }}-bazel-release

.github/workflows/ci-on-pr-bazel-test-win.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
shell: pwsh
3030

3131
- name: Checkout code
32-
uses: actions/checkout@v2
32+
uses: actions/checkout@v4
3333
with:
3434
ref: ${{github.event.pull_request.head.ref}}
3535
repository: ${{github.event.pull_request.head.repo.full_name}}
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Bazel cache
4141
id: cache-bazel
42-
uses: actions/cache@v3.0.4
42+
uses: actions/cache@v4
4343
with:
4444
path: ~/.cache/bazel/
4545
key: ${{ matrix.config.os }}-${{ matrix.config.arch }}-bazel-${{ steps.timestamp.outputs.timestamp }}

.github/workflows/link_and_spell_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: "Check spelling, linting and links"
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- run: |
1616
# we download the config files from the org repo and pick up the rules from the latest main
1717
wget https://github.com/qir-alliance/.github/archive/refs/heads/main.zip -O clone.zip &&

.github/workflows/target-testing.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: "Target testing"
1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
ref: ${{github.event.pull_request.head.ref}}
2323
repository: ${{github.event.pull_request.head.repo.full_name}}
@@ -30,12 +30,12 @@ jobs:
3030
sudo apt-get remove -y clang-13 llvm-13 clang-format-13 clang-tidy-13 clang-12 llvm-12 clang-format-12 clang-tidy-12
3131
sudo apt install -y --no-install-recommends clang-14 llvm-14 clang-format-14 clang-tidy-14
3232
sudo apt-get install -y nodejs npm
33-
sudo apt install -y python3 python3-pip
33+
sudo apt install -y python3 python3-pip
3434
sudo ln -s /usr/lib/llvm-14/bin/opt /usr/bin/opt
35-
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
36-
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.25.218240
35+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
36+
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.25.218240
3737
git submodule update --init --recursive
38-
pip install -r requirements.txt
38+
pip install -r requirements.txt
3939
npm install -g prettier@2.2.1
4040
env:
4141
DEBIAN_FRONTEND: noninteractive
@@ -52,7 +52,7 @@ jobs:
5252
make qat
5353
popd
5454
55-
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
55+
export QAT_BINARY=${PWD}/Debug/qir/qat/Apps/qat
5656
pip install pytest
5757
pip install -r requirements.txt
5858
cd qir/qsharp-target-tests/

.github/workflows/trusted-cd-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: "Push documentation"
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2.3.1
15+
uses: actions/checkout@v4
1616

1717
- name: "Installing dependencies"
1818
run: |

.github/workflows/trusted-cd-linux-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: "Installing dependencies"
1818
run: |
@@ -22,12 +22,12 @@ jobs:
2222
sudo apt-get remove -y clang-13 llvm-13 clang-format-13 clang-tidy-13 clang-12 llvm-12 clang-format-12 clang-tidy-12
2323
sudo apt install -y --no-install-recommends clang-14 llvm-14 clang-format-14 clang-tidy-14
2424
sudo apt-get install -y nodejs npm
25-
sudo apt install -y python3 python3-pip
25+
sudo apt install -y python3 python3-pip
2626
sudo ln -s /usr/lib/llvm-14/bin/opt /usr/bin/opt
27-
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
28-
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.20.2110171573
27+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 0
28+
dotnet tool install --global Microsoft.Quantum.IQSharp --version 0.20.2110171573
2929
git submodule update --init --recursive
30-
pip install -r requirements.txt
30+
pip install -r requirements.txt
3131
npm install -g prettier@2.2.1
3232
env:
3333
DEBIAN_FRONTEND: noninteractive

.github/workflows/trusted-cd-mac-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: macos-11
1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: "Installing dependencies"
1818
run: |

0 commit comments

Comments
 (0)