-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: install cargo-expand & upload to release
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ on: | |
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -28,10 +31,21 @@ jobs: | |
- name: Install flutter dependencies | ||
run: flutter pub get | ||
- name: Install flutter rust bridge | ||
run: cargo install '[email protected]' | ||
run: | | ||
cargo install cargo-expand | ||
cargo install '[email protected]' | ||
- name: Generate codes | ||
run: pnpm run generate | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Build APK | ||
run: pnpm run build:apk | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: artifacts/apk/*.apk | ||
# tag: ${{ github.ref }} | ||
tag: "v0.0.1" | ||
overwrite: true | ||
file_glob: true |