Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Aug 6, 2024
1 parent 225559f commit 0bc85d6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 39 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/manual-vscode-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ jobs:
fetch-depth: 0
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Install NodeJS v21
- name: Install NodeJS v22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
cache: 'npm'

- name: Install Deps
run: nix run .#install
run: npm install

- name: Build Prod
run: npm run build-prod
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/manual-vscode-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ jobs:
fetch-depth: 0
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Install NodeJS v21
- name: Install NodeJS v22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
cache: 'npm'

- name: Install Deps
run: nix run .#install
run: npm install

- name: Build Prod
run: npm run build-prod
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/rainix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Install NodeJS v21
- name: Install NodeJS v22
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
cache: 'npm'

- name: Install Deps
run: nix run .#install
run: npm install

- name: Build Prod
run: npm run build-prod
Expand Down
22 changes: 1 addition & 21 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,11 @@
let
pkgs = rainix.pkgs.${system};
in rec {
packages = {
install = rainix.mkTask.${system} {
name = "install";
body = ''
set -euxo pipefail
npm install
'';
additionalBuildInputs = [
pkgs.wasm-bindgen-cli
rainix.rust-toolchain.${system}
rainix.rust-build-inputs.${system}
rainix.node-build-inputs.${system}
];
};
};

# For `nix develop`:
devShell = pkgs.mkShell {
nativeBuildInputs = [
rainix.rust-toolchain.${system}
rainix.rust-build-inputs.${system}
rainix.node-build-inputs.${system}
] ++ (with pkgs; [
wasm-bindgen-cli
]);
];
};
}
);
Expand Down

0 comments on commit 0bc85d6

Please sign in to comment.