File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -313,30 +313,18 @@ jobs:
313313 echo "version=${VERSION}" >> $GITHUB_OUTPUT
314314 echo "build_number=${BUILD_NUMBER}" >> $GITHUB_OUTPUT
315315
316- - uses : subosito/flutter-action@v2
317- with :
318- flutter-version : ' 3.38.1'
319- channel : ' stable'
320-
321- - uses : actions/setup-go@v5
316+ - uses : cachix/install-nix-action@v27
322317 with :
323- go-version : ' 1.24.13'
324-
325- - uses : dtolnay/rust-toolchain@stable
326-
327- - name : Install required Rust toolchains
328- run : |
329- rustup toolchain install 1.85.1
330- rustup target add aarch64-apple-darwin --toolchain stable
331- rustup target add aarch64-apple-darwin --toolchain 1.85.1
318+ extra_nix_config : |
319+ experimental-features = nix-command flakes
332320
333321 - name : Decode secrets
334322 env :
335323 CHANGE_NOW : ${{ secrets.CHANGE_NOW }}
336324 run : echo "$CHANGE_NOW" | base64 --decode > lib/external_api_keys.dart
337325
338326 - name : Build
339- run : make build-macos VERSION="${{ steps.ver.outputs.version }}" BUILD_NUM="${{ steps.ver.outputs.build_number }}"
327+ run : nix develop --command make build-macos VERSION="${{ steps.ver.outputs.version }}" BUILD_NUM="${{ steps.ver.outputs.build_number }}"
340328
341329 - name : Package
342330 run : |
Original file line number Diff line number Diff line change @@ -90,30 +90,13 @@ jobs:
9090 with :
9191 submodules : recursive
9292
93- - name : Install Flutter
94- uses : subosito/flutter-action@v2
93+ - uses : cachix/install-nix-action@v27
9594 with :
96- flutter-version : ' 3.38.1'
97- channel : ' stable'
98-
99- - name : Setup Rust
100- uses : dtolnay/rust-toolchain@stable
101-
102- - name : Install macOS build dependencies
103- run : ./scripts/install_macos_build_tools.sh
104-
105- - name : Select Xcode
106- run : |
107- XCODE_PATH=$(find /Applications -maxdepth 1 -name 'Xcode*.app' -type d | head -1)
108- if [ -n "$XCODE_PATH" ]; then
109- sudo xcode-select --switch "$XCODE_PATH"
110- echo "Using Xcode at: $XCODE_PATH"
111- else
112- echo "Xcode not found" && exit 1
113- fi
95+ extra_nix_config : |
96+ experimental-features = nix-command flakes
11497
11598 - name : Fresh clone smoke build (macOS)
116- run : make build-macos VERSION=0.0.1 BUILD_NUM=1
99+ run : nix develop --command make build-macos VERSION=0.0.1 BUILD_NUM=1
117100
118101 - name : MWC FFI integration test
119- run : make test-mwc
102+ run : nix develop --command make test-mwc
You can’t perform that action at this time.
0 commit comments