Skip to content

Commit

Permalink
Renamed crates
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed May 16, 2024
1 parent 8b8d201 commit 95c26ea
Show file tree
Hide file tree
Showing 37 changed files with 69 additions and 6 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build-scaffold-holochain-runtime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: "build-scaffold-holochain-runtime"
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

jobs:
build-scaffold-holochain-runtime:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Extend space
uses: ./.github/actions/extend-space

- name: Install nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable

- uses: cachix/cachix-action@v14
with:
name: holochain-ci

- uses: cachix/cachix-action@v14
with:
name: holochain-open-dev

- uses: cachix/cachix-action@v14
with:
name: darksoil-studio

- name: Build scaffold-holochain-runtime
run: |
nix build -L .#scaffold-holochain-runtime
- name: Test scaffold-holochain-runtime
run: |
sh ./crates/scaffold-holochain-runtime/run_test.sh
- name: Cache scaffold-holochain-runtime
if: github.event_name != 'pull_request' && github.ref_name == 'main'
env:
CACHIX_AUTH_TOKEN: "${{ secrets.DARKSOIL_CACHIX_AUTH_TOKEN }}"
run: |
cachix push darksoil-studio $(nix path-info .#scaffold-holochain-runtime)
cachix pin darksoil-studio scaffold-holochain-runtime $(nix path-info .#scaffold-holochain-runtime)
4 changes: 4 additions & 0 deletions .github/workflows/build-scaffold-tauri-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
run: |
nix build -L .#scaffold-tauri-app
- name: Test scaffold-tauri-app
run: |
sh ./crates/scaffold-tauri-app/run_test.sh
- name: Cache scaffold-tauri-app
if: github.event_name != 'pull_request' && github.ref_name == 'main'
env:
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "scaffold_holochain_runtime"
name = "scaffold-holochain-runtime"
version = "0.1.0"
edition = "2021"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "scaffold_tauri_app"
name = "scaffold-tauri-app"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ nix flake update
nix develop --command bash -c \"npm i\"
"

nix run .#scaffold-tauri-app -- forum-scaffold-tauri-app --path /tmp/forum/scaffold-tauri-app
nix run .#scaffold-tauri-app -- forum-scaffold-tauri-app --path /tmp/forum-scaffold-tauri-app

cd /tmp/forum-scaffold-tauri-app

Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@
};
};

imports = [ ./crates/scaffold_tauri_app/default.nix ];
imports = [
./crates/scaffold-tauri-app/default.nix
./crates/scaffold-holochain-runtime/default.nix
];

systems = builtins.attrNames inputs.holochain.devShells;
perSystem = { inputs', config, pkgs, system, lib, ... }: rec {
Expand Down

0 comments on commit 95c26ea

Please sign in to comment.