Skip to content

Commit

Permalink
ci: Downgrade artifact actions until regression addressed (#3935)
Browse files Browse the repository at this point in the history
* ci: Downgrade artifact actions until regression addressed

Signed-off-by: Xuanwo <[email protected]>

* rust setup

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Jan 7, 2024
1 parent eb695a5 commit a8ba758
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bindings_haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/bindings_nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/bindings_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -93,14 +97,16 @@ 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"
command: build
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
Expand All @@ -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
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/fuzz_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a8ba758

Please sign in to comment.