From 49d40e3144d35aae3eba2b062ef0faf822a90546 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 20:22:17 -0800 Subject: [PATCH 01/21] wip ci --- .github/workflows/ci.yml | 37 ++++++++++++++++ .github/workflows/release.yml | 81 +++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..176aea8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown + + - name: Cache cargo data + uses: Swatinem/rust-cache@v2 + + - name: Install cargo-leptos + run: cargo install --locked cargo-leptos + + - name: cargo leptos test + run: cargo leptos test + + - name: Backend tests + run: cargo test + working-directory: backend + + - name: Indexer tests + run: cargo test + working-directory: indexer diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5ac910a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,81 @@ +name: Release + +on: + push: + tags: + - "v*" + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + DATABASE_URL: postgresql://pointer:pointer@postgres:5432/pointer + +jobs: + build-musl: + runs-on: ubuntu-latest + container: ghcr.io/messense/rust-musl-cross:x86_64-musl + services: + postgres: + image: postgres:16 + ports: + - 5432:5432 + env: + POSTGRES_USER: pointer + POSTGRES_PASSWORD: pointer + POSTGRES_DB: pointer + options: >- + --health-cmd="pg_isready -U pointer -d pointer" + --health-interval=10s + --health-timeout=5s + --health-retries=5 + steps: + - uses: actions/checkout@v4 + + - name: Install build tooling + run: | + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y pkg-config postgresql-client + rustup target add x86_64-unknown-linux-musl + + - name: Cache cargo data + uses: Swatinem/rust-cache@v2 + + - name: Wait for Postgres + run: pg_isready -h postgres -p 5432 -U pointer -d pointer + env: + PGUSER: pointer + PGPASSWORD: pointer + + - name: Apply migrations + run: | + for migration in backend/migrations/*.sql; do + psql "$DATABASE_URL" -f "$migration" + done + env: + PGUSER: pointer + PGPASSWORD: pointer + + - name: Build pointer (musl) + run: cargo build --locked --release --target x86_64-unknown-linux-musl -p pointer --bin pointer --features ssr + + - name: Build pointer-backend (musl) + run: cargo build --locked --release --target x86_64-unknown-linux-musl -p pointer-backend + + - name: Build pointer-indexer (musl) + run: cargo build --locked --release --target x86_64-unknown-linux-musl -p pointer-indexer + + - name: Package artifacts + run: | + mkdir -p artifacts + for bin in pointer pointer-backend pointer-indexer; do + src="target/x86_64-unknown-linux-musl/release/${bin}" + dest="artifacts/${bin}-x86_64-unknown-linux-musl" + cp "$src" "$dest" + tar -czf "${dest}.tar.gz" -C artifacts "$(basename "$dest")" + done + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: pointer-musl-binaries + path: artifacts/*.tar.gz From 34af4c6380378eb7d7687bbb9cbe3e068b22630c Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 20:52:22 -0800 Subject: [PATCH 02/21] update --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++-- .github/workflows/release.yml | 56 +++++++++++++++++++++++------------ 2 files changed, 80 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 176aea8..5f27e37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,25 @@ on: env: CARGO_TERM_COLOR: always + DATABASE_URL: postgresql://pointer:pointer@localhost:5432/pointer jobs: test: runs-on: ubuntu-latest + services: + postgres: + image: postgres:16 + ports: + - 5432:5432 + env: + POSTGRES_USER: pointer + POSTGRES_PASSWORD: pointer + POSTGRES_DB: pointer + options: >- + --health-cmd="pg_isready -U pointer -d pointer" + --health-interval=10s + --health-timeout=5s + --health-retries=5 steps: - uses: actions/checkout@v4 @@ -22,8 +37,34 @@ jobs: - name: Cache cargo data uses: Swatinem/rust-cache@v2 - - name: Install cargo-leptos - run: cargo install --locked cargo-leptos + - name: Install build tooling + run: | + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client + + - name: Install cargo-leptos (prebuilt) + uses: taiki-e/install-action@v2 + with: + tool: cargo-leptos + + - name: Install sqlx-cli (prebuilt) + uses: taiki-e/install-action@v2 + with: + tool: sqlx-cli + features: postgres,rustls + + - name: Wait for Postgres + run: pg_isready -h localhost -p 5432 -U pointer -d pointer + env: + PGUSER: pointer + PGPASSWORD: pointer + + - name: Apply migrations + working-directory: backend + run: cargo sqlx migrate run --source migrations + env: + PGUSER: pointer + PGPASSWORD: pointer - name: cargo leptos test run: cargo leptos test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ac910a..0f97bf0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: container: ghcr.io/messense/rust-musl-cross:x86_64-musl services: postgres: - image: postgres:16 + image: postgres:18 ports: - 5432:5432 env: @@ -35,11 +35,22 @@ jobs: run: | apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y pkg-config postgresql-client - rustup target add x86_64-unknown-linux-musl + rustup target add x86_64-unknown-linux-musl wasm32-unknown-unknown - name: Cache cargo data uses: Swatinem/rust-cache@v2 + - name: Install sqlx-cli (prebuilt) + uses: taiki-e/install-action@v2 + with: + tool: sqlx-cli + features: postgres,rustls + + - name: Install cargo-leptos (prebuilt) + uses: taiki-e/install-action@v2 + with: + tool: cargo-leptos + - name: Wait for Postgres run: pg_isready -h postgres -p 5432 -U pointer -d pointer env: @@ -47,35 +58,42 @@ jobs: PGPASSWORD: pointer - name: Apply migrations - run: | - for migration in backend/migrations/*.sql; do - psql "$DATABASE_URL" -f "$migration" - done + working-directory: backend + run: cargo sqlx migrate run --source migrations env: PGUSER: pointer PGPASSWORD: pointer - - name: Build pointer (musl) - run: cargo build --locked --release --target x86_64-unknown-linux-musl -p pointer --bin pointer --features ssr + - name: Build pointer (wasm + binary) + run: cargo leptos build --release -P --features ssr - - name: Build pointer-backend (musl) - run: cargo build --locked --release --target x86_64-unknown-linux-musl -p pointer-backend + - name: Build pointer-backend + run: cargo build --locked --release -p pointer-backend - - name: Build pointer-indexer (musl) - run: cargo build --locked --release --target x86_64-unknown-linux-musl -p pointer-indexer + - name: Build pointer-indexer + run: cargo build --locked --release -p pointer-indexer - name: Package artifacts run: | - mkdir -p artifacts - for bin in pointer pointer-backend pointer-indexer; do - src="target/x86_64-unknown-linux-musl/release/${bin}" - dest="artifacts/${bin}-x86_64-unknown-linux-musl" - cp "$src" "$dest" - tar -czf "${dest}.tar.gz" -C artifacts "$(basename "$dest")" + set -euo pipefail + mkdir -p artifacts pointer + + # Package pointer assets + binary + POINTER_BIN="$(find target -path '*/release/pointer' -type f | head -n1)" + cp "$POINTER_BIN" pointer/pointer + cp -r target/site pointer/site + cp Cargo.toml pointer/Cargo.toml + tar -czf artifacts/pointer.tar.gz -C pointer . + + # Package backend and indexer binaries + for bin in pointer-backend pointer-indexer; do + BIN_PATH="$(find target -path "*/release/${bin}" -type f | head -n1)" + cp "$BIN_PATH" "artifacts/${bin}" + tar -czf "artifacts/${bin}.tar.gz" -C artifacts "${bin}" done - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: pointer-musl-binaries + name: pointer-release-artifacts path: artifacts/*.tar.gz From 07fa00b7d9ac8df073fa7414fa8971acda4c5666 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 21:13:26 -0800 Subject: [PATCH 03/21] test --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f97bf0..fb8c452 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,13 @@ name: Release on: + # push: + # tags: + # - "v*" + # workflow_dispatch: push: - tags: - - "v*" - workflow_dispatch: + branches: [main] + pull_request: env: CARGO_TERM_COLOR: always From 6e794c5ab3eb72bf46f859a55ddb30fd58e0ba97 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 21:23:02 -0800 Subject: [PATCH 04/21] update --- .github/workflows/ci.yml | 16 +++++++++++----- .github/workflows/release.yml | 32 +++++++++++++++++++++----------- 2 files changed, 32 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f27e37..fec9a82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest services: postgres: - image: postgres:16 + image: postgres:18 ports: - 5432:5432 env: @@ -47,11 +47,17 @@ jobs: with: tool: cargo-leptos - - name: Install sqlx-cli (prebuilt) - uses: taiki-e/install-action@v2 + - name: Cache sqlx-cli + uses: actions/cache@v4 with: - tool: sqlx-cli - features: postgres,rustls + path: ~/.cargo/bin/sqlx + key: ${{ runner.os }}-sqlx-cli-${{ hashFiles('Cargo.lock', 'backend/Cargo.lock') }} + + - name: Install sqlx-cli + run: | + if ! command -v sqlx >/dev/null; then + cargo install --locked sqlx-cli --no-default-features --features postgres,rustls + fi - name: Wait for Postgres run: pg_isready -h localhost -p 5432 -U pointer -d pointer diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb8c452..a4c5152 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,26 +34,36 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install build tooling - run: | - apt-get update - DEBIAN_FRONTEND=noninteractive apt-get install -y pkg-config postgresql-client - rustup target add x86_64-unknown-linux-musl wasm32-unknown-unknown + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown - name: Cache cargo data uses: Swatinem/rust-cache@v2 - - name: Install sqlx-cli (prebuilt) - uses: taiki-e/install-action@v2 - with: - tool: sqlx-cli - features: postgres,rustls + - name: Install build tooling + run: | + sudo apt-get update + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client - name: Install cargo-leptos (prebuilt) uses: taiki-e/install-action@v2 with: tool: cargo-leptos + - name: Cache sqlx-cli + uses: actions/cache@v4 + with: + path: ~/.cargo/bin/sqlx + key: ${{ runner.os }}-sqlx-cli-${{ hashFiles('Cargo.lock', 'backend/Cargo.lock') }} + + - name: Install sqlx-cli + run: | + if ! command -v sqlx >/dev/null; then + cargo install --locked sqlx-cli --no-default-features --features postgres,rustls + fi + - name: Wait for Postgres run: pg_isready -h postgres -p 5432 -U pointer -d pointer env: @@ -68,7 +78,7 @@ jobs: PGPASSWORD: pointer - name: Build pointer (wasm + binary) - run: cargo leptos build --release -P --features ssr + run: cargo leptos build --release -P - name: Build pointer-backend run: cargo build --locked --release -p pointer-backend From 413f2e9d7597d2749265ace00544308e50107123 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 21:39:04 -0800 Subject: [PATCH 05/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4c5152..66c9e3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: - name: Set up Rust uses: dtolnay/rust-toolchain@stable with: - targets: wasm32-unknown-unknown + targets: wasm32-unknown-unknown,x86_64-unknown-linux-musl - name: Cache cargo data uses: Swatinem/rust-cache@v2 From 71e8ffda60b0bf433c6e347425643081104d3118 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 21:43:20 -0800 Subject: [PATCH 06/21] update --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66c9e3c..2c7d1a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,6 @@ env: jobs: build-musl: runs-on: ubuntu-latest - container: ghcr.io/messense/rust-musl-cross:x86_64-musl services: postgres: image: postgres:18 From 4fc8c12d78f36571f882273aad97f017a1f41817 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 22:06:27 -0800 Subject: [PATCH 07/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c7d1a0..879f84e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: fi - name: Wait for Postgres - run: pg_isready -h postgres -p 5432 -U pointer -d pointer + run: pg_isready -h localhost -p 5432 -U pointer -d pointer env: PGUSER: pointer PGPASSWORD: pointer From b40d71c4e02faada9bc8f5e74a2a01a07f1210ad Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Sun, 23 Nov 2025 22:17:03 -0800 Subject: [PATCH 08/21] update --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fec9a82..ad9492d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,7 +67,7 @@ jobs: - name: Apply migrations working-directory: backend - run: cargo sqlx migrate run --source migrations + run: sqlx migrate run --source migrations env: PGUSER: pointer PGPASSWORD: pointer diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 879f84e..131c485 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: - name: Cache sqlx-cli uses: actions/cache@v4 with: - path: ~/.cargo/bin/sqlx + path: ~/.cargo/bin/cargo-sqlx key: ${{ runner.os }}-sqlx-cli-${{ hashFiles('Cargo.lock', 'backend/Cargo.lock') }} - name: Install sqlx-cli @@ -71,7 +71,7 @@ jobs: - name: Apply migrations working-directory: backend - run: cargo sqlx migrate run --source migrations + run: sqlx migrate run --source migrations env: PGUSER: pointer PGPASSWORD: pointer From b9bd72228fd6f3a4343012c7a8e28666c82600e0 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 00:08:29 -0800 Subject: [PATCH 09/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 131c485..ef70611 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ on: env: CARGO_TERM_COLOR: always - DATABASE_URL: postgresql://pointer:pointer@postgres:5432/pointer + DATABASE_URL: postgresql://pointer:pointer@localhost:5432/pointer jobs: build-musl: From 69493fe86ee2139a6d876b24d21d735a999803c4 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 00:16:31 -0800 Subject: [PATCH 10/21] update --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5d56faf..292fe49 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly" +channel = "stable" From 7573234f3bd49017090821391485394f2fa896d6 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 00:23:21 -0800 Subject: [PATCH 11/21] update --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- rust-toolchain.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad9492d..1f999a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@nightly with: targets: wasm32-unknown-unknown diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef70611..c782fd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@nightly with: targets: wasm32-unknown-unknown,x86_64-unknown-linux-musl diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 292fe49..5d56faf 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "stable" +channel = "nightly" From 959ee3e5da2d19acc673ad7281e77eeaf6969b57 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 01:54:00 -0800 Subject: [PATCH 12/21] musl --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c782fd0..1a64eb0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,13 +77,13 @@ jobs: PGPASSWORD: pointer - name: Build pointer (wasm + binary) - run: cargo leptos build --release -P + run: cargo leptos build --release -P --bin-cargo-args="--target x86_64-unknown-linux-musl" - name: Build pointer-backend - run: cargo build --locked --release -p pointer-backend + run: cargo build --locked --release -p pointer-backend --target x86_64-unknown-linux-musl - name: Build pointer-indexer - run: cargo build --locked --release -p pointer-indexer + run: cargo build --locked --release -p pointer-indexer --target x86_64-unknown-linux-musl - name: Package artifacts run: | From d18559b8d2a75f9aa24572b7b5940fdf405c89d3 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 02:00:08 -0800 Subject: [PATCH 13/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a64eb0..57a5484 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: PGPASSWORD: pointer - name: Build pointer (wasm + binary) - run: cargo leptos build --release -P --bin-cargo-args="--target x86_64-unknown-linux-musl" + run: cargo leptos build --release -P --bin-cargo-args="--target=x86_64-unknown-linux-musl" - name: Build pointer-backend run: cargo build --locked --release -p pointer-backend --target x86_64-unknown-linux-musl From 3d4c94eb02cff7fdc733144aa770f7f1fd6c76bc Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 02:04:09 -0800 Subject: [PATCH 14/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57a5484..93a546f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: - name: Install build tooling run: | sudo apt-get update - sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client musl-gcc - name: Install cargo-leptos (prebuilt) uses: taiki-e/install-action@v2 From 0a000e7369b109f689141647f426a8d101dd74f7 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 02:09:08 -0800 Subject: [PATCH 15/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93a546f..8d5777d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,7 +44,7 @@ jobs: - name: Install build tooling run: | sudo apt-get update - sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client musl-gcc + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client build-essential musl-tools - name: Install cargo-leptos (prebuilt) uses: taiki-e/install-action@v2 From 0661e2716526d7747bd7c7b63de256690f337d2c Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 02:30:51 -0800 Subject: [PATCH 16/21] update --- .github/workflows/release.yml | 2 +- Cargo.toml | 1 + indexer/Cargo.toml | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d5777d..150a9a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: PGPASSWORD: pointer - name: Build pointer (wasm + binary) - run: cargo leptos build --release -P --bin-cargo-args="--target=x86_64-unknown-linux-musl" + run: cargo leptos build --release -P --bin-cargo-args="--target=x86_64-unknown-linux-musl" --bin-features vendored - name: Build pointer-backend run: cargo build --locked --release -p pointer-backend --target x86_64-unknown-linux-musl diff --git a/Cargo.toml b/Cargo.toml index 7bcdbfe..56da968 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -134,6 +134,7 @@ thiserror = ["dep:thiserror"] server_fn_macro_default = ["dep:server_fn_macro_default"] autumnus = ["dep:autumnus"] +vendored = ["pointer-indexer/vendored"] # Defines a size-optimized profile for the WASM bundle in release mode [profile.wasm-release] diff --git a/indexer/Cargo.toml b/indexer/Cargo.toml index fe579d6..f82f60f 100644 --- a/indexer/Cargo.toml +++ b/indexer/Cargo.toml @@ -40,5 +40,10 @@ tree-sitter-glsl = "0.2.0" crossbeam-channel = "0.5" humantime = "2.1" +[features] +vendored = [ + "git2/vendored-openssl" +] + [dev-dependencies] pretty_assertions = "1" From c949d1a85634feec34f6220695cb862ba2bce298 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 02:58:22 -0800 Subject: [PATCH 17/21] update --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 150a9a8..c5b5b32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,13 +77,15 @@ jobs: PGPASSWORD: pointer - name: Build pointer (wasm + binary) - run: cargo leptos build --release -P --bin-cargo-args="--target=x86_64-unknown-linux-musl" --bin-features vendored + env: + LEPTOS_BIN_TARGET_TRIPLE: x86_64-unknown-linux-musl + run: cargo leptos build --release -P --bin-features vendored,ssr - name: Build pointer-backend run: cargo build --locked --release -p pointer-backend --target x86_64-unknown-linux-musl - name: Build pointer-indexer - run: cargo build --locked --release -p pointer-indexer --target x86_64-unknown-linux-musl + run: cargo build --locked --release -p pointer-indexer --target x86_64-unknown-linux-musl --features vendored - name: Package artifacts run: | From 28ce293f5cea16e4da931f188470ec9d40f2157c Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 03:07:35 -0800 Subject: [PATCH 18/21] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5b5b32..d1eb32d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,7 +82,7 @@ jobs: run: cargo leptos build --release -P --bin-features vendored,ssr - name: Build pointer-backend - run: cargo build --locked --release -p pointer-backend --target x86_64-unknown-linux-musl + run: cargo build --locked --release -p pointer-backend --target x86_64-unknown-linux-musl --features vendored - name: Build pointer-indexer run: cargo build --locked --release -p pointer-indexer --target x86_64-unknown-linux-musl --features vendored From 91f531e237a3a2d189ec2eeb3a1cbdca9a08df7e Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 04:40:39 -0800 Subject: [PATCH 19/21] update --- backend/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 84e5461..d1665f3 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -24,3 +24,6 @@ syntect = { version = "5", default-features = false, features = ["default-fancy" futures = "0.3" tempfile = "3" chrono = { version = "0.4", features = ["serde"] } + +[features] +vendored = ["pointer-indexer/vendored"] \ No newline at end of file From cf0b052a95c1ae2b22d31ac2620aa8960a09efbf Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 05:06:08 -0800 Subject: [PATCH 20/21] update --- .github/workflows/release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1eb32d..9560dc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,10 @@ name: Release on: - # push: - # tags: - # - "v*" - # workflow_dispatch: push: - branches: [main] - pull_request: + tags: + - "v*" + workflow_dispatch: env: CARGO_TERM_COLOR: always From 428c83a900b221b8aa0e93b17c3495f869830f66 Mon Sep 17 00:00:00 2001 From: DolceTriade Date: Mon, 24 Nov 2025 07:05:38 -0800 Subject: [PATCH 21/21] update --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9560dc8..ecb7eea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,12 +87,12 @@ jobs: - name: Package artifacts run: | set -euo pipefail - mkdir -p artifacts pointer + mkdir -p artifacts pointer/target # Package pointer assets + binary POINTER_BIN="$(find target -path '*/release/pointer' -type f | head -n1)" cp "$POINTER_BIN" pointer/pointer - cp -r target/site pointer/site + cp -r target/site pointer/target/site cp Cargo.toml pointer/Cargo.toml tar -czf artifacts/pointer.tar.gz -C pointer .