Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github actions that are deprecated. #2354

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
53 changes: 30 additions & 23 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 @@ -212,16 +212,17 @@ jobs:

- name: Gather and pack binaries
if: matrix.mode == 'compile' && matrix.arch == 'x86_64'
# these are used for building the gh-pages.
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
Expand All @@ -236,15 +237,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 +257,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 +282,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 +300,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 +313,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 +349,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 +372,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 +417,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 +461,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 +477,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 +532,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
Loading