Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update upload/download-artifact GH actions #2662

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
- name: Generate FFI bindings
run: just gen
- name: Upload Rust bridge_generated directory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: rust_bridge_generated
path: mobile/native/src/bridge_generated/
- name: Upload Dart bridge_generated directory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dart_bridge_generated
path: mobile/lib/bridge_generated/
- name: Upload Dart mocks directory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dart_mocks_generated
path: mobile/test/*.mocks.dart
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
run: rustup show
- uses: Swatinem/rust-cache@v2.2.0
- name: Download RUST FFI bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: rust_bridge_generated
path: mobile/native/src/bridge_generated
Expand All @@ -102,12 +102,12 @@ jobs:
cache-key: flutter-${{ env.FLUTTER_VERSION }}
cache-path: ${{ runner.tool_cache }}/flutter
- name: Download Dart mocks directory
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: dart_mocks_generated
path: mobile/test
- name: Download Dart bridge_generated directory
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: dart_bridge_generated
path: mobile/lib/bridge_generated
Expand Down Expand Up @@ -135,15 +135,15 @@ jobs:
cache-key: flutter-${{ env.FLUTTER_VERSION }}
cache-path: ${{ runner.tool_cache }}/flutter
- name: Download Rust generated FFI flutter bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: rust_bridge_generated
path: mobile/native/src/bridge_generated
- name: Running cargo tests
run: RUST_BACKTRACE=1 cargo test
# Flutter tests run `build_runner`, so no need to download mocks
- name: Download Dart bridge_generated directory
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: dart_bridge_generated
path: mobile/lib/bridge_generated
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
target/debug/coordinator
key: test-cache-${{ github.run_id }}-${{ github.run_number }}
- name: Download RUST FFI bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: rust_bridge_generated
path: mobile/native/src/bridge_generated
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
run: rustup show
- uses: Swatinem/rust-cache@v2.2.0
- name: Download RUST FFI bindings
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: rust_bridge_generated
path: mobile/native/src/bridge_generated
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

print(f"::set-output name=version::{version}")

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.ANDROID_APK_NAME }}

Expand Down
Loading