Skip to content

Commit

Permalink
Merge pull request #2662 from get10101/chore/update-artifact-gh-actions
Browse files Browse the repository at this point in the history
Update upload/download-artifact GH actions
  • Loading branch information
luckysori authored Oct 28, 2024
2 parents 4bef78c + f5fd04a commit 3362bfa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
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/[email protected]
- 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/[email protected]
- 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

0 comments on commit 3362bfa

Please sign in to comment.