From dd5c3dc769b542ca27c246444154d632d3d6eb69 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 24 Jun 2024 15:17:57 -0700 Subject: [PATCH 1/3] [ci] use a new version of cancel-previous-flow due to node16 deprecation --- .github/workflows/build.yml | 18 +++++++++--------- .github/workflows/cell_lib_test.yml | 2 +- .github/workflows/format.yaml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8b04312d5..c2ce66fcc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: docker_repo: ${{ steps.changes.outputs.docker_repo }} steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -120,7 +120,7 @@ jobs: CXX: ${{ matrix.config.cxx }} steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -216,7 +216,7 @@ jobs: CXX: ${{ matrix.config.cxx }} steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -262,7 +262,7 @@ jobs: CXX: ${{ matrix.config.cxx }} steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -308,7 +308,7 @@ jobs: CXX: ${{ matrix.config.cxx }} steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -360,7 +360,7 @@ jobs: CXX: ${{ matrix.config.cxx }} steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -397,7 +397,7 @@ jobs: needs: [linux_build, change_detect] steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -450,7 +450,7 @@ jobs: - name: tcl_reg_test steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -508,7 +508,7 @@ jobs: - name: tcl_reg_test steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} diff --git a/.github/workflows/cell_lib_test.yml b/.github/workflows/cell_lib_test.yml index 5d590dc90..feaa28a3e 100644 --- a/.github/workflows/cell_lib_test.yml +++ b/.github/workflows/cell_lib_test.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 2631f135b..2a4fd8bbb 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -35,7 +35,7 @@ jobs: dependency_version: "ubuntu22p04" steps: - name: Cancel previous - uses: styfle/cancel-workflow-action@0.9.1 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} From 428f5b480377640f6c5881bc1fd8d76946629497 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 24 Jun 2024 15:23:55 -0700 Subject: [PATCH 2/3] [ci] now use upload-artifact v4 due to deprecation --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2ce66fcc..b324c8c89 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -153,7 +153,7 @@ jobs: - name: Check ccache size run: ccache -s - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ matrix.config.cc == 'gcc-11'}} with: name: openfpga @@ -475,7 +475,7 @@ jobs: shell: bash run: source openfpga.sh && source openfpga_flow/regression_test_scripts/${{matrix.config.name}}.sh --debug --show_thread_logs - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: failed_${{matrix.config.name}}_regression_log @@ -524,7 +524,7 @@ jobs: unset OPENFPGA_PATH source openfpga.sh && source openfpga_flow/regression_test_scripts/${{matrix.config.name}}.sh --debug --show_thread_logs - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: failed_${{matrix.config.name}}_regression_log From c07e35136b67c7d09feddd4f965c6271e96e3e52 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 25 Jun 2024 16:46:33 -0700 Subject: [PATCH 3/3] [ci] now use download-artifact v4 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b324c8c89..e97ead79f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -404,7 +404,7 @@ jobs: - name: Checkout OpenFPGA repo uses: actions/checkout@v4 - name: Download a built artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: openfpga - name: Set up QEMU @@ -457,7 +457,7 @@ jobs: - name: Checkout OpenFPGA repo uses: actions/checkout@v4 - name: Download a built artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: openfpga - name: chmod