Compare commits

..

12 Commits

Author SHA1 Message Date
b591e37cfd
Build default
Some checks failed
Push Workflows / test (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / nix-build (push) Successful in 25m52s
2024-12-17 20:44:30 -05:00
d0aad82f21
Use ubuntu image
Some checks failed
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 35s
2024-12-17 20:42:38 -05:00
7e0785e522
Use nix image
Some checks failed
Push Workflows / test (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 2m33s
2024-12-17 19:41:22 -05:00
b4451d110d
Sandbox true
Some checks failed
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 18m43s
2024-12-15 18:06:07 -05:00
2cc311ea7a
Ignore some Nix files 2024-12-15 18:06:07 -05:00
47cea5172d
Extra dashes
Some checks failed
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 13m0s
2024-12-15 16:50:09 -05:00
0b16357930
sandbox false
Some checks failed
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 19s
2024-12-15 16:49:26 -05:00
cb34e4a488
Install from nixos.org
Some checks failed
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 55s
2024-12-15 16:46:55 -05:00
e29edf72d9
Make new user first
Some checks failed
Push Workflows / docs (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 19s
2024-12-15 16:44:47 -05:00
27a86a9890
Change user
Some checks failed
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / test (push) Has been cancelled
Push Workflows / nix-build (push) Failing after 19s
2024-12-15 16:43:37 -05:00
412b18df23
Change user
Some checks failed
Push Workflows / test (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / nix-build (push) Has been cancelled
2024-12-15 16:38:08 -05:00
d391549849
Add debug
Some checks failed
Push Workflows / test (push) Has been cancelled
Push Workflows / leptos-test (push) Has been cancelled
Push Workflows / docker-build (push) Has been cancelled
Push Workflows / build (push) Has been cancelled
Push Workflows / docs (push) Has been cancelled
Push Workflows / nix-build (push) Has been cancelled
2024-12-15 16:34:08 -05:00
5 changed files with 24 additions and 38 deletions

View File

@ -7,20 +7,18 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Use Cache
uses: Swatinem/rust-cache@v2
- name: Build project - name: Build project
env:
RUSTFLAGS: "-D warnings"
run: cargo-leptos build run: cargo-leptos build
docker-build: docker-build:
runs-on: ubuntu-latest-docker runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with:
endpoint: ${{ env.docker_endpoint }}
- name: Login to Gitea container registry - name: Login to Gitea container registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -36,22 +34,22 @@ jobs:
with: with:
push: true push: true
tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:${{ gitea.sha }}" tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:${{ gitea.sha }}"
cache-to: mode=max cache-from: type=registry,ref=${{ steps.get-image-name.outputs.IMAGE_NAME }}:${{ gitea.sha }}
cache-to: type=inline
- name: Build and push Docker image with "latest" tag - name: Build and push Docker image with "latest" tag
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
if: gitea.ref == 'refs/heads/main' if: gitea.ref == 'refs/heads/main'
with: with:
push: true push: true
tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest" tags: "${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest"
cache-to: mode=max cache-from: type=registry,ref=${{ steps.get-image-name.outputs.IMAGE_NAME }}:latest
cache-to: type=inline
test: test:
runs-on: libretunes-cicd runs-on: libretunes-cicd
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Use Cache
uses: Swatinem/rust-cache@v2
- name: Test project - name: Test project
run: cargo test --all-targets --all-features run: cargo test --all-targets --all-features
@ -60,8 +58,6 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Use Cache
uses: Swatinem/rust-cache@v2
- name: Run Leptos tests - name: Run Leptos tests
run: cargo-leptos test run: cargo-leptos test
@ -70,8 +66,6 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Use Cache
uses: Swatinem/rust-cache@v2
- name: Generate docs - name: Generate docs
run: cargo doc --no-deps run: cargo doc --no-deps
- name: Upload docs - name: Upload docs
@ -87,15 +81,7 @@ jobs:
run: apt update run: apt update
- name: Install Nix - name: Install Nix
run: apt install -y nix-bin run: apt install -y nix-bin
- name: Restore and cache Nix store - name: Checkout repository
uses: nix-community/cache-nix-action@v5 uses: actions/checkout@v4
with:
primary-key: nix-build
- name: Build project with Nix - name: Build project with Nix
run: nix build --experimental-features 'nix-command flakes' git+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git?ref=$GITHUB_REF_NAME#default --no-write-lock-file run: nix build --experimental-features 'nix-command flakes' .#default
env:
runs-on: ubuntu-latest
steps:
- name: Print Environment
run: env

2
.gitignore vendored
View File

@ -34,4 +34,4 @@ playwright/.cache/
# Nix-related files # Nix-related files
.direnv/ .direnv/
result/ result

20
Cargo.lock generated
View File

@ -3444,9 +3444,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]] [[package]]
name = "wasm-bindgen" name = "wasm-bindgen"
version = "0.2.96" version = "0.2.95"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21d3b25c3ea1126a2ad5f4f9068483c2af1e64168f847abe863a526b8dbfe00b" checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"once_cell", "once_cell",
@ -3455,9 +3455,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-backend" name = "wasm-bindgen-backend"
version = "0.2.96" version = "0.2.95"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52857d4c32e496dc6537646b5b117081e71fd2ff06de792e3577a150627db283" checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358"
dependencies = [ dependencies = [
"bumpalo", "bumpalo",
"log", "log",
@ -3482,9 +3482,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-macro" name = "wasm-bindgen-macro"
version = "0.2.96" version = "0.2.95"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "920b0ffe069571ebbfc9ddc0b36ba305ef65577c94b06262ed793716a1afd981" checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56"
dependencies = [ dependencies = [
"quote", "quote",
"wasm-bindgen-macro-support", "wasm-bindgen-macro-support",
@ -3492,9 +3492,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-macro-support" name = "wasm-bindgen-macro-support"
version = "0.2.96" version = "0.2.95"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf59002391099644be3524e23b781fa43d2be0c5aa0719a18c0731b9d195cab6" checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",
@ -3505,9 +3505,9 @@ dependencies = [
[[package]] [[package]]
name = "wasm-bindgen-shared" name = "wasm-bindgen-shared"
version = "0.2.96" version = "0.2.95"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5047c5392700766601942795a436d7d2599af60dcc3cc1248c9120bfb0827b0" checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d"
[[package]] [[package]]
name = "wasm-streams" name = "wasm-streams"

View File

@ -15,7 +15,7 @@ leptos = { version = "0.6", default-features = false, features = ["nightly"] }
leptos_meta = { version = "0.6", features = ["nightly"] } leptos_meta = { version = "0.6", features = ["nightly"] }
leptos_axum = { version = "0.6", optional = true } leptos_axum = { version = "0.6", optional = true }
leptos_router = { version = "0.6", features = ["nightly"] } leptos_router = { version = "0.6", features = ["nightly"] }
wasm-bindgen = { version = "=0.2.96", default-features = false, optional = true } wasm-bindgen = { version = "=0.2.95", default-features = false, optional = true }
leptos_icons = { version = "0.3.0" } leptos_icons = { version = "0.3.0" }
icondata = { version = "0.3.0" } icondata = { version = "0.3.0" }
diesel = { version = "2.1.4", features = ["postgres", "r2d2", "chrono"], default-features = false, optional = true } diesel = { version = "2.1.4", features = ["postgres", "r2d2", "chrono"], default-features = false, optional = true }

View File

@ -6,7 +6,7 @@
rust-overlay.url = "github:oxalica/rust-overlay"; rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
cargo-leptos = { cargo-leptos = {
url = "github:leptos-rs/cargo-leptos?ref=v0.2.22"; url = "github:leptos-rs/cargo-leptos?ref=v0.2.21";
flake = false; flake = false;
}; };
}; };
@ -24,7 +24,7 @@
name = "cargo-leptos"; name = "cargo-leptos";
buildFeatures = ["no_downloads"]; buildFeatures = ["no_downloads"];
src = cargo-leptos; src = cargo-leptos;
cargoHash = "sha256-4v6sCTPRxe7bO7uV3HwUC8P1UsG8ydIvZ4rG2kU22zA="; cargoHash = "sha256-pcjMMeSltCvYeMFlJs1hYUGIU9fUv50lydudTDCi23M=";
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
pkg-config pkg-config