Skip to content

Commit

Permalink
Fix object_store CI (#4037)
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Apr 7, 2023
1 parent 6e9751f commit ff670c5
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/object_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
runs-on: ubuntu-latest
container:
image: amd64/rust
defaults:
run:
working-directory: object_store
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
Expand All @@ -50,26 +53,29 @@ jobs:
# features that might be enabled by dev-dependencies of other
# targets.
- name: Run clippy with default features
run: cargo clippy -p object_store -- -D warnings
run: cargo clippy -- -D warnings
- name: Run clippy with aws feature
run: cargo clippy -p object_store --features aws -- -D warnings
run: cargo clippy --features aws -- -D warnings
- name: Run clippy with aws_profile feature
run: cargo clippy -p object_store --features aws_profile -- -D warnings
run: cargo clippy --features aws_profile -- -D warnings
- name: Run clippy with gcp feature
run: cargo clippy -p object_store --features gcp -- -D warnings
run: cargo clippy --features gcp -- -D warnings
- name: Run clippy with azure feature
run: cargo clippy -p object_store --features azure -- -D warnings
run: cargo clippy --features azure -- -D warnings
- name: Run clippy with all features
run: cargo clippy -p object_store --all-features -- -D warnings
run: cargo clippy --all-features -- -D warnings
- name: Run clippy with all features and all targets
run: cargo clippy -p object_store --all-features --all-targets -- -D warnings
run: cargo clippy --all-features --all-targets -- -D warnings

# test the crate
# This runs outside a container to workaround lack of support for passing arguments
# to service containers - https://github.com/orgs/community/discussions/26688
linux-test:
name: Emulator Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: object_store
env:
# Disable full debug symbol generation to speed up CI build and keep memory down
# "1" means line tables only, which is useful for panic tracebacks.
Expand Down Expand Up @@ -128,14 +134,17 @@ jobs:
OBJECT_STORE_AWS_ACCESS_KEY_ID: test
OBJECT_STORE_AWS_SECRET_ACCESS_KEY: test
OBJECT_STORE_AWS_ENDPOINT: http://localhost:4566
run: cargo test -p object_store --features=aws,azure,gcp,http
run: cargo test --features=aws,azure,gcp,http

# test the object_store crate builds against wasm32 in stable rust
wasm32-build:
name: Build wasm32
runs-on: ubuntu-latest
container:
image: amd64/rust
defaults:
run:
working-directory: object_store
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -145,6 +154,6 @@ jobs:
with:
target: wasm32-unknown-unknown,wasm32-wasi
- name: Build wasm32-unknown-unknown
run: cargo build -p object_store --target wasm32-unknown-unknown
run: cargo build --target wasm32-unknown-unknown
- name: Build wasm32-wasi
run: cargo build -p object_store --target wasm32-wasi
run: cargo build --target wasm32-wasi

0 comments on commit ff670c5

Please sign in to comment.