Skip to content

Commit

Permalink
updated to v4 in .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonWong14 committed Mar 7, 2024
1 parent 12f3978 commit d95cf43
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/pull_request_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
# First, we check out the repository's code using the Github Actions' "Checkout" tool.
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'

Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
sudo chown root:root /usr/bin/tar && sudo chmod u+s /usr/bin/tar
- name: Cache protobuf-c
id: cache-protobuf-c
uses: actions/cache@v3 # Uses the Github Actions' "Cache" tool
uses: actions/cache@v4 # Uses the Github Actions' "Cache" tool
with:
# These are the files we cache
path: |
Expand All @@ -74,6 +74,15 @@ jobs:
run: |
sudo chown runner:runner /usr/bin/tar && sudo chmod u+x /usr/bin/tar
# Before we build Runtime, we check the formatting
- name: Debug
run: |
ls
pwd
- name: Format
run: |
./runtime format check
# This if statement determine whether the cache lookup was a hit (true) or miss (not true--idk, false doesn't work)
# If the cache lookup hit, we just run "sudo ldconfig" to tell the linker where to look for
# protobuf-c files. If the cache lookup missed, we have to install protobuf-c from scratch
Expand All @@ -89,11 +98,6 @@ jobs:
tar -xzf protobuf-c-1.4.1.tar.gz
cd protobuf-c-1.4.1 && ./configure && make && sudo make install && sudo ldconfig
# Before we build Runtime, we check the formatting
- name: Format
run: |
./runtime format check
# Now that we are done installing Runtime's dependencies, we build Runtime
- name: Build
run: |
Expand Down

0 comments on commit d95cf43

Please sign in to comment.