Skip to content

Commit

Permalink
Update github actions that are deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Feb 16, 2025
1 parent 0e3fe53 commit d28e273
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/bin/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ case "$MODE" in
;;

compile|compile-clang|clean)
bazel build --keep_going ${BAZEL_OPTS} :install-binaries
bazel build -c opt --keep_going ${BAZEL_OPTS} :install-binaries
;;

compile-static|compile-static-clang)
bazel build --keep_going --config=create_static_linked_executables ${BAZEL_OPTS} :install-binaries
bazel build -c opt --keep_going --config=create_static_linked_executables ${BAZEL_OPTS} :install-binaries
;;

test-c++20|test-c++20-clang)
Expand Down
56 changes: 31 additions & 25 deletions .github/workflows/verible-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -108,10 +108,10 @@ jobs:
|| ( cat verible_clang-tidy.out ; exit 1)
- name: 📤 Upload performance graphs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "diag"
name: "diag-clang-tidy"
path: "**/plot_*.svg"

Check:
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Download complete repository + tags
fetch-depth: 0
Expand Down Expand Up @@ -213,18 +213,18 @@ jobs:
- name: Gather and pack binaries
if: matrix.mode == 'compile' && matrix.arch == 'x86_64'
run: |
bazel build -c fastbuild :install-binaries
bazel build -c opt :install-binaries
# Litmus test
bazel-bin/verible/verilog/tools/syntax/verible-verilog-syntax --version
.github/bin/simple-install.sh $VERIBLE_BINDIR
tar cfv verible-bin.tar -C $VERIBLE_BINDIR .
- name: Upload bazel-bin
if: matrix.mode == 'compile' && matrix.arch == 'x86_64'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: verible-bin
path: verible-bin.tar
name: verible-compile-${{ matrix.arch }}
path: verible-compile.tar

- name: Pack up static results
if: matrix.mode == 'compile-static'
Expand All @@ -236,15 +236,16 @@ jobs:
tar cvzf verible-${VERSION}-linux-static-${{matrix.arch}}.tar.gz verible-${VERSION}
- name: 📤 Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: verible-install-${{ matrix.arch }}
path: verible-*.tar.gz

- name: 📤 Upload performance graphs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: "diag"
name: "diag-${{ matrix.arch }}-${{ matrix.mode }}"
path: "**/plot_*.svg"


Expand All @@ -255,7 +256,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Download complete repository + tags
fetch-depth: 0
Expand All @@ -280,7 +281,7 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Download complete repository + tags
fetch-depth: 0
Expand All @@ -298,7 +299,7 @@ jobs:
./.github/bin/run-kythe.sh
- name: 📤 Upload Kythe xRefs to the action artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: kythe_output/*.kzip

Expand All @@ -311,7 +312,7 @@ jobs:
echo "USE_BAZEL_VERSION=6.5.0" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -347,16 +348,17 @@ jobs:
tar cvzf verible-${VERSION}-macOS.tar.gz verible-${VERSION}-macOS
- name: 📤 Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: verible-install-macos
path: verible-*.tar.gz

PrepareVSPlugin:
container: ubuntu:jammy
runs-on: [self-hosted, Linux, X64, gcp-custom-runners]
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -369,7 +371,7 @@ jobs:
runs-on: windows-2019
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -414,8 +416,9 @@ jobs:
7z a "verible-${VERSION}-win64.zip" "c:/verible-${VERSION}-win64"
- name: 📤 Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: verible-install-win
path: verible-*.zip

# We need to shut down bazel to let go of the filedescriptors in the
Expand Down Expand Up @@ -457,8 +460,9 @@ jobs:
tar --exclude=.git -cvzf ${OUT_SRC}.tar.gz ../${OUT_SRC}
- name: 📤 Upload Source tar
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: src
path: verible-*.tar.gz

Release:
Expand All @@ -472,13 +476,15 @@ jobs:

steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Download complete repository + tags
fetch-depth: 0

- name: 📥 Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Generate and apply TAG
run: |
Expand Down Expand Up @@ -525,9 +531,9 @@ jobs:
contents: write

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

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: verible-bin

Expand Down

0 comments on commit d28e273

Please sign in to comment.