Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Update GitHub Actions (#410)
Browse files Browse the repository at this point in the history
* Updates actions/cache to v4.0.0
* Updates actions/checkout to v4.1.1
  • Loading branch information
marbre authored Feb 13, 2024
1 parent 3a6cb5b commit d935df7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout EmitC
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ${{ env.EMITC }}
submodules: 'true'
Expand All @@ -35,14 +35,14 @@ jobs:

- name: Cache LLVM
id: cache-llvm
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.LLVM }}
key: ${{ runner.os }}-llvm-22.04-install-${{ env.llvm_hash }}

- name: Checkout LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: llvm/llvm-project
path: ${{ env.LLVM }}
Expand Down Expand Up @@ -74,14 +74,14 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout EmitC
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ${{ env.EMITC }}
submodules: 'false'

- name: Cache e2e
id: cache-e2e
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.E2E }}
key: ${{ runner.os }}-e2e-${{ hashFiles('emitc/scripts/*.py', 'emitc/scripts/requirements.txt', 'emitc/scripts/e2e*.sh') }}-${{ env.E2E_VERSION }}
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
run: sudo apt-get install -y libeigen3-dev

- name: Checkout EmitC
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ${{ env.EMITC }}
submodules: 'true'
Expand All @@ -130,7 +130,7 @@ jobs:

- name: Cache LLVM
id: cache-llvm
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.LLVM }}
key: ${{ runner.os }}-llvm-22.04-install-${{ env.llvm_hash }}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
run: sudo apt-get install -y libeigen3-dev

- name: Checkout EmitC
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ${{ env.EMITC }}
submodules: 'true'
Expand All @@ -180,7 +180,7 @@ jobs:

- name: Cache LLVM
id: cache-llvm
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.LLVM }}
key: ${{ runner.os }}-llvm-22.04-install-${{ env.llvm_hash }}
Expand All @@ -207,7 +207,7 @@ jobs:
./reference-implementation/unittests/MLIREmitCEigenTests
- name: Cache e2e
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.E2E }}
key: ${{ runner.os }}-e2e-${{ hashFiles('emitc/scripts/*.py', 'emitc/scripts/requirements.txt', 'emitc/scripts/e2e*.sh') }}-${{ env.E2E_VERSION }}
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
run: echo "$GITHUB_WORKSPACE/${LLVM}/install/bin" >> $GITHUB_PATH

- name: Checkout EmitC
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: ${{ env.EMITC }}
submodules: 'true'
Expand All @@ -293,7 +293,7 @@ jobs:

- name: Cache LLVM
id: cache-llvm
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ${{ env.LLVM }}
key: ${{ runner.os }}-llvm-22.04-install-${{ env.llvm_hash }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
wget https://raw.githubusercontent.com/llvm-mirror/clang/master/tools/clang-format/git-clang-format -O /tmp/git-clang-format
chmod +x /tmp/git-clang-format
- name: Checking out repository
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Fetching Base Branch
# We have to explicitly fetch the base branch as well
run: git fetch --no-tags --prune --depth=1 origin "${GITHUB_BASE_REF?}:${GITHUB_BASE_REF?}"
Expand Down

0 comments on commit d935df7

Please sign in to comment.