Skip to content

Fixed icons in src-tauri #37

Fixed icons in src-tauri

Fixed icons in src-tauri #37

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
if: ${{ github.event.inputs.runs-on == 'ubuntu-latest' }}
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: |
cargo test -p scaffold-holochain-runtime
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)