From 69a53e495d708db31c91568a781f0f1ef163fbb0 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Fri, 27 Sep 2024 15:39:44 -0700 Subject: [PATCH] Use actions/upload-artifact@v4 on CI (#8410) --- .github/workflows/build.yml | 16 ++++++++-------- .github/workflows/main.yml | 4 ++-- .github/workflows/scorecards.yml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 520f5554233..31d5d46e931 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ on: - master schedule: # Run daily at 4:45 A.M. to catch dependencies that break us. - - cron: '45 4 * * *' + - cron: '45 4 * * *' jobs: build-linux: @@ -42,7 +42,7 @@ jobs: chmod +x flatc ./flatc --version - name: upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Linux flatc binary ${{ matrix.cxx }} path: flatc @@ -170,7 +170,7 @@ jobs: - name: test run: Release\flattests.exe - name: upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Windows flatc binary path: Release\flatc.exe @@ -242,9 +242,9 @@ jobs: chmod +x Release/flatc Release/flatc --version - name: upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: Mac flatc binary + name: Mac flatc binary Intel path: Release/flatc # Below if only for release. - name: Zip file @@ -285,9 +285,9 @@ jobs: chmod +x Release/flatc Release/flatc --version - name: upload build artifacts - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: - name: Mac flatc binary + name: Mac flatc binary Universal path: Release/flatc # Below if only for release. - name: Zip file @@ -366,7 +366,7 @@ jobs: - name: Run benchmarks run: ./flatbenchmark --benchmark_repetitions=5 --benchmark_display_aggregates_only=true --benchmark_out_format=console --benchmark_out=benchmarks/results_${{matrix.cxx}} - name: Upload benchmarks results - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: Linux flatbenchmark results ${{matrix.cxx}} path: benchmarks/results_${{matrix.cxx}} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7394617c00b..9a900953924 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,7 @@ name: OSS-Fuzz permissions: read-all -on: +on: pull_request: branches: - master @@ -27,7 +27,7 @@ jobs: language: c++ fuzz-seconds: 60 - name: Upload Crash - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 if: failure() && steps.build.outcome == 'success' with: name: artifacts diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 8b2be945d62..362dafb7f34 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -42,7 +42,7 @@ jobs: # Upload the results as artifacts (optional). - name: "Upload artifact" - uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535 # v3.0.0 + uses: actions/upload-artifact@v4 with: name: SARIF file path: results.sarif