From a8ba75887ff5be6cdaca709bbaccb5551fcf000a Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sun, 7 Jan 2024 11:20:36 +0800 Subject: [PATCH] ci: Downgrade artifact actions until regression addressed (#3935) * ci: Downgrade artifact actions until regression addressed Signed-off-by: Xuanwo * rust setup Signed-off-by: Xuanwo --------- Signed-off-by: Xuanwo --- .github/workflows/bindings_haskell.yml | 2 +- .github/workflows/bindings_nodejs.yml | 10 +++---- .github/workflows/bindings_python.yml | 16 ++++++++---- .github/workflows/docs.yml | 36 +++++++++++++------------- .github/workflows/fuzz_test.yml | 10 +++---- .github/workflows/release_java.yml | 12 ++++----- 6 files changed, 46 insertions(+), 40 deletions(-) diff --git a/.github/workflows/bindings_haskell.yml b/.github/workflows/bindings_haskell.yml index bf42bd67d672..bc8b3fb961c8 100644 --- a/.github/workflows/bindings_haskell.yml +++ b/.github/workflows/bindings_haskell.yml @@ -100,7 +100,7 @@ jobs: tar xf opendal-*.crate --strip-components=1 cabal sdist - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: bindings-haskell-sdist path: bindings/haskell/target/package/dist-newstyle/sdist/*.tar.gz diff --git a/.github/workflows/bindings_nodejs.yml b/.github/workflows/bindings_nodejs.yml index da0095b42385..e11dd76bef1b 100644 --- a/.github/workflows/bindings_nodejs.yml +++ b/.github/workflows/bindings_nodejs.yml @@ -150,7 +150,7 @@ jobs: shell: bash working-directory: . run: ${{ matrix.settings.build }} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: bindings-linux-${{ matrix.settings.target }} path: bindings/nodejs/*.node @@ -166,7 +166,7 @@ jobs: - target: aarch64-pc-windows-msvc build: | rustup target add aarch64-pc-windows-msvc; - NAPI_TARGET=aarch64-pc-windows-msvc pnpm build + NAPI_TARGET=aarch64-pc-windows-msvc pnpm build # Notes: this defaults only apply on run tasks. defaults: @@ -193,7 +193,7 @@ jobs: - name: Build shell: bash run: ${{ matrix.settings.build }} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: bindings-windows-${{ matrix.settings.target }} path: bindings/nodejs/*.node @@ -246,7 +246,7 @@ jobs: - name: Build run: ${{ matrix.settings.build }} shell: bash - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: bindings-macos-${{ matrix.settings.target }} path: bindings/nodejs/*.node @@ -280,7 +280,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: path: bindings/nodejs/artifacts - name: Move artifacts diff --git a/.github/workflows/bindings_python.yml b/.github/workflows/bindings_python.yml index 2a4dba92772c..12c38b3c15db 100644 --- a/.github/workflows/bindings_python.yml +++ b/.github/workflows/bindings_python.yml @@ -46,7 +46,7 @@ jobs: command: sdist args: -o dist - name: Upload sdist - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: wheels path: bindings/python/dist @@ -58,6 +58,8 @@ jobs: target: [x86_64, aarch64, armv7l] steps: - uses: actions/checkout@v4 + - name: Setup Rust toolchain + uses: ./.github/actions/setup - uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} @@ -69,7 +71,7 @@ jobs: # Workaround ring 0.17 build issue CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8" - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: wheels path: bindings/python/dist @@ -78,13 +80,15 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 + - name: Setup Rust toolchain + uses: ./.github/actions/setup - uses: PyO3/maturin-action@v1 with: working-directory: "bindings/python" command: build args: --release -o dist --find-interpreter --features=pyo3/extension-module,services-all - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: wheels path: bindings/python/dist @@ -93,6 +97,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 + - name: Setup Rust toolchain + uses: ./.github/actions/setup - uses: PyO3/maturin-action@v1 with: working-directory: "bindings/python" @@ -100,7 +106,7 @@ jobs: target: universal2-apple-darwin args: --release -o dist --find-interpreter --features=pyo3/extension-module,services-all - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: wheels path: bindings/python/dist @@ -114,7 +120,7 @@ jobs: id-token: write needs: [macos, linux, windows] steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v3 with: name: wheels path: bindings/python/dist diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 928f3f597ef2..617f27a0cb75 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -64,7 +64,7 @@ jobs: RUSTDOCFLAGS: "--cfg docs" - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: rust-docs path: ./target/doc @@ -85,7 +85,7 @@ jobs: run: mvn javadoc:javadoc - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: java-docs path: ./bindings/java/target/site/apidocs @@ -118,7 +118,7 @@ jobs: run: pnpm run docs - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: nodejs-docs path: ./bindings/nodejs/docs @@ -145,7 +145,7 @@ jobs: run: pdoc -t ./template --output-dir ./docs opendal - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: python-docs path: ./bindings/python/docs @@ -169,7 +169,7 @@ jobs: run: make doc - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: C-docs path: ./bindings/c/docs/doxygen/html @@ -188,7 +188,7 @@ jobs: run: ldoc ./src - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: lua-docs path: ./bindings/lua/doc/ @@ -225,7 +225,7 @@ jobs: find dist-newstyle -path '**/build/**/doc' -exec cp -r {}/html/opendal/ doc \; - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: haskell-docs path: ./bindings/haskell/doc/ @@ -254,7 +254,7 @@ jobs: ninja docs - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: cpp-docs path: ./bindings/cpp/build/docs_doxygen/html @@ -281,7 +281,7 @@ jobs: dune build @doc - name: Upload docs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: ocaml-docs path: ./bindings/ocaml/_build/default/_doc/_html @@ -317,55 +317,55 @@ jobs: run: corepack enable - name: Download rust docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: rust-docs path: ./website/static/docs/rust - name: Download nodejs docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: nodejs-docs path: ./website/static/docs/nodejs - name: Download python docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: python-docs path: ./website/static/docs/python - name: Download java docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: java-docs path: ./website/static/docs/java - name: Download C docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: C-docs path: ./website/static/docs/c - name: Download lua docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: lua-docs path: ./website/static/docs/lua - name: Download haskell docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: haskell-docs path: ./website/static/docs/haskell - name: Download cpp docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: cpp-docs path: ./website/static/docs/cpp - name: Download ocaml docs - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: ocaml-docs path: ./website/static/docs/ocaml diff --git a/.github/workflows/fuzz_test.yml b/.github/workflows/fuzz_test.yml index 54ea22f14a49..97652f040e31 100644 --- a/.github/workflows/fuzz_test.yml +++ b/.github/workflows/fuzz_test.yml @@ -60,7 +60,7 @@ jobs: CUSTOM_LIBFUZZER_PATH: /usr/lib/llvm-14/lib/libFuzzer.a - name: Upload build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: fuzz_targets path: | @@ -93,7 +93,7 @@ jobs: AWS_EC2_METADATA_DISABLED: "true" run: aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://test - name: Download Fuzz Targets - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: fuzz_targets path: ./target @@ -122,7 +122,7 @@ jobs: - name: Install libfuzzer run: sudo apt-get install -y libfuzzer-14-dev - name: Download Fuzz Targets - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: fuzz_targets path: ./target @@ -147,7 +147,7 @@ jobs: - name: Install libfuzzer run: sudo apt-get install -y libfuzzer-14-dev - name: Download Fuzz Targets - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: fuzz_targets path: ./target @@ -183,7 +183,7 @@ jobs: --name test \ --connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" - name: Download Fuzz Targets - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: fuzz_targets path: ./target diff --git a/.github/workflows/release_java.yml b/.github/workflows/release_java.yml index dbfced4cf762..b67816506a3f 100644 --- a/.github/workflows/release_java.yml +++ b/.github/workflows/release_java.yml @@ -100,7 +100,7 @@ jobs: MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }} MAVEN_GPG_PASSPHRASE: "" - name: Upload local staging directory - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: ${{ matrix.classifier }}-local-staging path: bindings/java/local-staging @@ -130,27 +130,27 @@ jobs: run: echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV - name: Download windows staging directory - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: windows-x86_64-local-staging path: ~/windows-x86_64-local-staging - name: Download linux x86_64 staging directory - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: linux-x86_64-local-staging path: ~/linux-x86_64-local-staging - name: Download linux aarch_64 staging directory - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: linux-aarch_64-local-staging path: ~/linux-aarch_64-local-staging - name: Download darwin staging directory - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: osx-x86_64-local-staging path: ~/osx-x86_64-local-staging - name: Download darwin (aarch64) staging directory - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: osx-aarch_64-local-staging path: ~/osx-aarch_64-local-staging