diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5c295ec..5695661 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,28 +28,11 @@ jobs: mv /root/.config/godot ~/.config/godot mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable ls -lah - - name: Install Python - uses: actions/setup-python@v4 + - uses: cachix/install-nix-action@v27 with: - python-version: '3.10' - - uses: mymindstorm/setup-emsdk@v14 - - name: Verify - run: emcc -v - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - components: rust-src, cargo, rustc, rust-analyzer, rustfmt - - name: GDExtension Build - run: | - cd ./rust/godot-neural-networks - cargo +nightly build -Zbuild-std --target wasm32-unknown-emscripten --release - mkdir -p ../../game/extern/release - cp ./target/wasm32-unknown-emscripten/debug/godot_neural_networks.wasm ../../game/extern/release/godot_neural_networks.wasm - - name: List files - run: | - ls -lah + nix_path: nixpkgs=channel:nixos-unstable + - name: Build Rust + run: nix develop --command cargo build -Zbuild-std=std,panic_abort --target wasm32-unknown-emscripten --release # - name: Web Build # run: | # mkdir -v -p build/web