ci: use fast macos runners from bladerunner #30
This file contains hidden or 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
| name: Nix Build | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| jobs: | |
| nix-android: | |
| name: Nix → Android Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v30 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - name: Init git repo (required by nimble) | |
| working-directory: mobile-app | |
| run: | | |
| git init | |
| git config user.email "ci@test.com" | |
| git config user.name "CI" | |
| git add -A | |
| git diff --cached --quiet || git commit -m "init" | |
| - name: Build Android via Nix + Make | |
| run: nix develop --command bash -c 'make android' | |
| - name: Upload Release APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nix-android-apk | |
| path: mobile-app/android/app/build/outputs/apk/release/app-release.apk | |
| retention-days: 7 | |
| nix-ios: | |
| name: Nix → iOS Build | |
| runs-on: bladerunner-macos | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v30 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - name: Init git repo (required by nimble) | |
| working-directory: mobile-app | |
| run: | | |
| git init | |
| git config user.email "ci@test.com" | |
| git config user.name "CI" | |
| git add -A | |
| git diff --cached --quiet || git commit -m "init" | |
| - name: Install Nim deps (Nix nimble links OpenSSL 3 + Security.framework which clash) | |
| run: | | |
| brew install nim | |
| cd mobile-app/nim && nimble install -d -y | |
| - name: Build iOS via Nix + Make | |
| run: nix develop --command bash -c 'make ios' | |
| - name: Upload Simulator Build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nix-ios-app | |
| path: mobile-app/ios/build/Build/Products/Release-iphonesimulator/nimrnmobileapp.app | |
| retention-days: 7 |