Skip to content

Commit

Permalink
Use nix in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusey committed Jan 14, 2025
1 parent a10335f commit 4ed577c
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ed577c

Please sign in to comment.