chore: Use setup rust lang job in ci

krille/use-setup-rust-job
Christian Kußowski 1 week ago
parent eddf6e1107
commit eea5158f76
No known key found for this signature in database

@ -58,9 +58,7 @@ jobs:
with:
flutter-version-file: .tool_versions.yaml
cache: true
- uses: moonrepo/setup-rust@v1
with:
cache: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cache Gradle
uses: actions/cache@v5
with:
@ -86,7 +84,7 @@ jobs:
with:
flutter-version-file: .tool_versions.yaml
cache: true
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- run: flutter pub get
- name: Prepare web
@ -113,7 +111,7 @@ jobs:
run: |
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
./flutter/bin/flutter doctor
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: ./flutter/bin/flutter pub get
- run: ./flutter/bin/flutter build linux --target-platform linux-${{ matrix.arch }}
@ -129,7 +127,7 @@ jobs:
- name: Use specific XCode version
run: sudo xcode-select --switch /Applications/Xcode_26.3.app
- run: brew install sqlcipher
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: ./scripts/add-firebase-messaging.sh
- run: flutter pub get
- run: flutter build ios --no-codesign
@ -193,9 +191,7 @@ jobs:
with:
flutter-version-file: .tool_versions.yaml
cache: true
- uses: moonrepo/setup-rust@v1
with:
cache: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cache Gradle
uses: actions/cache@v5
with:

@ -18,7 +18,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version-file: .tool_versions.yaml
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Prepare web
run: ./scripts/prepare-web.sh
@ -48,7 +48,7 @@ jobs:
with:
ruby-version: '3.3'
- uses: ./.github/actions/free_up_space
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Fastlane
run: gem install fastlane -NV
- name: Add Firebase Messaging

@ -22,7 +22,7 @@ jobs:
with:
flutter-version-file: .tool_versions.yaml
cache: true
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- run: flutter pub get
- name: Prepare web
@ -87,7 +87,7 @@ jobs:
echo '${{secrets.GOOGLE_SERVICES_JSON}}' | base64 -d > android/app/google-services.json
./scripts/add-firebase-messaging.sh
- uses: ./.github/actions/free_up_space
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: flutter pub get
- name: Prepare Android Release Build
env:
@ -120,7 +120,7 @@ jobs:
run: |
git clone --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git
./flutter/bin/flutter doctor
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: ./flutter/bin/flutter pub get
- run: ./flutter/bin/flutter build linux --target-platform linux-${{ matrix.arch }}
- name: Create archive
@ -148,7 +148,7 @@ jobs:
with:
ruby-version: '3.3'
- uses: ./.github/actions/free_up_space
- uses: moonrepo/setup-rust@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Fastlane
working-directory: android
run: gem install fastlane -NV

Loading…
Cancel
Save