Skip to content

Commit

Permalink
[infra] Update to checkout v4. (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Sep 5, 2023
1 parent 60e5a44 commit 186c031
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-without-conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
INSTALL_DIR: "/home/runner/local"
TMP_DIR: "/home/runner/tmp"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Create directories
run: |
mkdir ${INSTALL_DIR}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
tket_ver: ${{ steps.tket_ver.outputs.tket_ver }}
tket_package_exists: ${{ steps.tket_package_exists.outputs.tket_package_exists }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
if: needs.check_changes.outputs.tket_changed == 'true' || needs.check_changes.outputs.doxyfile_changed == 'true'
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check doxygen
run: |
sudo apt install -y doxygen graphviz
Expand All @@ -78,7 +78,7 @@ jobs:
if: needs.check_changes.outputs.tket_changed == 'true'
runs-on: 'macos-12'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check C++ code formatting
run: |
brew update
Expand All @@ -94,7 +94,7 @@ jobs:
os: ['ubuntu-22.04', 'macos-12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: apt update
if: matrix.os == 'ubuntu-22.04'
run: sudo apt update
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
os: ['windows-2022']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
with:
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
needs: check_changes
if: needs.check_changes.outputs.tket_changed == 'true' && github.repository == 'CQCL/tket'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
- name: Set up conan
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
if: needs.check_changes.outputs.tket_changed == 'true' || needs.check_changes.outputs.pytket_changed == 'true'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
- name: Set up conan
Expand Down Expand Up @@ -363,7 +363,7 @@ jobs:
if: needs.check_changes.outputs.tket_changed == 'true' || needs.check_changes.outputs.pytket_changed == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Select Python 3.10
# otherwise turtlebrowser/[email protected] fails on macos-12
uses: actions/setup-python@v4
Expand Down Expand Up @@ -452,7 +452,7 @@ jobs:
if: needs.check_changes.outputs.tket_changed == 'true' || needs.check_changes.outputs.pytket_changed == 'true'
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
- name: Set up conan
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
needs: check_changes
if: (needs.check_changes.outputs.tket_changed == 'true' || needs.check_changes.outputs.pytket_changed == 'true') && github.repository == 'CQCL/tket'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
- name: Set up conan
Expand Down Expand Up @@ -620,7 +620,7 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Download artefact
Expand Down Expand Up @@ -648,7 +648,7 @@ jobs:
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artefact
uses: actions/download-artifact@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
tkwsm: ${{ steps.filter.outputs.tkwsm }}
libs: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dorny/[email protected]
id: filter
with:
Expand All @@ -46,7 +46,7 @@ jobs:
build_type: ['Release', 'Debug']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: normalize line endings in conanfile and src directory
if: matrix.os == 'windows-2022'
# This is necessary to ensure consistent revisions across platforms.
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
lib: ${{ fromJson(needs.changes.outputs.libs) }}
build_type: ['Release', 'Debug']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
- name: create profile
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
env:
UPLOAD_PACKAGE: "NO"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: set up container
run: |
docker create --name linux_build -i -v /:/host quay.io/pypa/manylinux2014_x86_64:latest /bin/bash
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
outputs:
tket: ${{ steps.filter.outputs.tket }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dorny/[email protected]
id: filter
with:
Expand All @@ -39,7 +39,7 @@ jobs:
if: needs.changes.outputs.tket == 'true' || github.event_name == 'schedule'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install conan
uses: turtlebrowser/[email protected]
- name: create profile
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
if: ((github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && needs.changes.outputs.tket == 'true') || github.event_name == 'schedule'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download artefact
uses: actions/download-artifact@v3
with:
Expand All @@ -114,7 +114,7 @@ jobs:
if: github.event_name == 'push' && needs.changes.outputs.tket == 'true'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Download artefact
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
if: github.event_name == 'schedule'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Download artefact
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build_docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Doxygen
run: sudo apt update && sudo apt install -y doxygen graphviz
- name: Build Doxygen docs
Expand All @@ -26,7 +26,7 @@ jobs:
concurrency: gh_pages
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Download artefact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Select Python 3.10
# otherwise turtlebrowser/[email protected] fails on macos-12
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: ['self-hosted', 'macOS', 'ARM64']
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install conan
uses: turtlebrowser/[email protected]
Expand All @@ -74,7 +74,7 @@ jobs:
runs-on: 'ubuntu-22.04'
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up container
run: |
Expand All @@ -91,7 +91,7 @@ jobs:
runs-on: ['self-hosted', 'macOS', 'ARM64']
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up container
run: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
python3-version: ['9', '10', '11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand All @@ -42,7 +42,7 @@ jobs:
matrix:
python3-version: ['9', '10', '11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
path: wheelhouse/
- name: Install wheel
run: pip install wheelhouse/pytket-*.whl
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: tket
- name: Setup tests
Expand All @@ -223,7 +223,7 @@ jobs:
matrix:
python3-version: ['9', '10', '11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: tket
- name: Download wheel
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
with:
name: MacOS_${{ matrix.python-version }}_wheel
path: wheelhouse/
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: tket
- name: Install wheel
Expand All @@ -288,7 +288,7 @@ jobs:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: tket
- name: Download wheels
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
- name: Install wheel
shell: bash
run: for i in wheelhouse/pytket-*.whl ; do pip install $i ; done
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: tket
- name: Run tests
Expand Down Expand Up @@ -367,7 +367,7 @@ jobs:
if: github.event_name == 'release'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:
if: github.event_name == 'release' && github.event.release.prerelease != true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages
- name: Download artefact
Expand Down
Loading

0 comments on commit 186c031

Please sign in to comment.