Something went wrong. Try again.
Local-first knowledge base made for Typst and the Atmosphere. typbase.at
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105name: Void Linux XBPS
on: release: types: [published] workflow_call: inputs: tagName: description: Release tag to package. required: true type: string workflow_dispatch: inputs: tagName: description: Release tag to package. required: true type: string
env: NUXT_PUBLIC_APP_URL: ${{ vars.NUXT_PUBLIC_APP_URL || 'https://typbase.at' }} NUXT_PUBLIC_PROXY_URL: ${{ vars.NUXT_PUBLIC_PROXY_URL || 'https://proxy.typbase.at' }} XBPS_ALLOW_RESTRICTED: "yes" XBPS_CHROOT_CMD: ethereal XBPS_ALLOW_CHROOT_BREAKOUT: "yes" WASM_PACK_VERSION: "0.15.1"
jobs: build: name: 🌑 Void xbps runs-on: ubuntu-latest container: image: ghcr.io/void-linux/void-glibc-full:latest permissions: actions: read attestations: write contents: write id-token: write steps: - name: 🛠️ Install tools run: | xbps-install -Syu xbps xbps-install -y base-devel bash curl git nodejs pnpm rustup xtools
- name: 🦀 Install Rust and wasm-pack run: | rustup-init -y --profile minimal --default-toolchain stable --no-modify-path export PATH="$HOME/.cargo/bin:$PATH" echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" rustup target add wasm32-unknown-unknown
curl -sSfL "https://github.com/rustwasm/wasm-pack/releases/download/v${WASM_PACK_VERSION}/wasm-pack-v${WASM_PACK_VERSION}-x86_64-unknown-linux-musl.tar.gz" | tar -xz -C /tmp install -m755 "/tmp/wasm-pack-v${WASM_PACK_VERSION}-x86_64-unknown-linux-musl/wasm-pack" /usr/local/bin/wasm-pack
- name: 🔄 Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: fetch-depth: 1
- name: 🏷️ Resolve version id: version shell: bash env: TAG: ${{ inputs.tagName || github.event.release.tag_name }} run: bash scripts/ci/resolve-version.sh
- name: 🔢 Get source tarball checksum id: sums shell: bash run: | URL="https://github.com/lemueldls/typbase/archive/refs/tags/typbase-v${{ steps.version.outputs.version }}.tar.gz" echo "sha256=$(bash scripts/ci/url-sha256.sh "$URL")" >> "$GITHUB_OUTPUT"
- name: 🔨 Build package shell: bash env: VERSION: ${{ steps.version.outputs.version }} SHA256: ${{ steps.sums.outputs.sha256 }} APP_URL: ${{ env.NUXT_PUBLIC_APP_URL }} XBPS_REPOSITORY_SIGNING_KEY: ${{ secrets.XBPS_REPOSITORY_SIGNING_KEY }} run: bash scripts/ci/void-package.sh
- name: 📤 Upload build artifacts (test builds only) if: (!inputs.tagName && github.event_name != 'release') uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: void path: | ${{ github.workspace }}/void-out/*
- name: 🚀 Attach to release (publish only) if: github.event_name == 'release' || inputs.tagName != '' uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1 with: tag_name: ${{ steps.version.outputs.tag }} draft: true files: | ${{ github.workspace }}/void-out/typbase-${{ steps.version.outputs.version }}_1.x86_64.xbps ${{ github.workspace }}/void-out/x86_64-repodata
- name: 🛡️ Attest build provenance (publish only) if: github.event_name == 'release' || inputs.tagName != '' uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0 with: subject-path: ${{ github.workspace }}/void-out/*