Skip to content

Commit

Permalink
install rust via nix for tauri build
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Jan 23, 2024
1 parent d9e8eb6 commit b6ac0dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
platform: [
macos-latest,
ubuntu-20.04
# Someone who cares can make windows work.
# windows-latest
]

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -35,8 +40,11 @@ jobs:
with:
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install rust
run: nix profile install .#rust-toolchain.$(nix eval --impure --raw --expr 'builtins.currentSystem')

# - name: install Rust stable
# uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
let
pkgs = rainix.pkgs.${system};
in {
rust-toolchain = rainix.rust-toolchain.${system};
packages = rec {
ob-tauri-prelude = rainix.mkTask.${system} {
name = "ob-tauri-prelude";
Expand Down

0 comments on commit b6ac0dc

Please sign in to comment.