Skip to content

Commit

Permalink
chore: Migrate makefile to justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelrobert committed Dec 10, 2024
1 parent b68bdd8 commit 65724b4
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 150 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/android_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Just
uses: extractions/setup-just@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -54,12 +57,12 @@ jobs:
- name: Set up Android CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd prototype && make setup-android-ci
run: just setup-android-ci

- name: Integrate bridge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd prototype && make frb-integrate
run: just frb-integrate

- name: Build and upload to Play Store
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,19 @@ jobs:
channel: "stable"
cache: true

- name: Set up Just
uses: extractions/setup-just@v2

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy, rustfmt

- name: Set up CI
run: cd prototype && make setup-ci
run: just setup-ci
- name: Integrate bridge
run: cd prototype && make frb-integrate
run: just frb-integrate

- name: Rustfmt
run: cargo fmt -- --check
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/docker_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ jobs:
channel: "stable"
cache: true

- name: Set up Just
uses: extractions/setup-just@v2

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Set up CI
run: cd prototype && make setup-ci
run: just setup-ci
- name: Integrate bridge
run: cd prototype && make frb-integrate
run: just frb-integrate
- name: Run docker-based tests
run: cargo test --verbose -- --ignored
7 changes: 5 additions & 2 deletions .github/workflows/ios_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Just
uses: extractions/setup-just@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -36,10 +39,10 @@ jobs:
- name: Set up iOS CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd prototype && make setup-ios-ci
run: just setup-ios-ci

- name: Integrate bridge
run: cd prototype && make frb-integrate
run: just frb-integrate

- name: Build iOS app
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/ios_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Just
uses: extractions/setup-just@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -41,10 +44,10 @@ jobs:
- name: Set up iOS CI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd prototype && make setup-ios-ci
run: just setup-ios-ci

- name: Integrate bridge
run: cd prototype && make frb-integrate
run: just frb-integrate

- name: Build and upload to TestFlight
env:
Expand Down
8 changes: 8 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,15 @@ setup-android-ci: setup-ci
cargo binstall -y cargo-ndk
cd {{app_dir}}/fastlane && bundle install

# set up the CI environment for iOS builds
setup-ios-ci: setup-ci
cd {{app_dir}}/fastlane && bundle install

# build Android
# we limit it to android-arm64 to speed up the build process
build-android:
cd {{app_dir}} && flutter build appbundle --target-platform android-arm64

# build iOS
build-ios:
cd {{app_dir}} && flutter build ios --no-codesign
47 changes: 0 additions & 47 deletions prototype/conf-macos.sh

This file was deleted.

93 changes: 0 additions & 93 deletions prototype/makefile

This file was deleted.

0 comments on commit 65724b4

Please sign in to comment.