diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index b2ccac5..b743a2d 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -1,44 +1,44 @@ name: Publish Nightly Docker Image on: - schedule: - - cron: '0 8 * * *' - workflow_dispatch: + schedule: + - cron: "0 8 * * *" + workflow_dispatch: jobs: - publish: - name: Build and Publish Nightly - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v4 + publish: + name: Build and Publish Nightly + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - - name: Log in to ghcr.io - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Log in to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - - name: Docker Metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - tags: | - type=edge,branch=main + - name: Docker Metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }} + tags: | + type=edge,branch=main - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64, linux/arm64 + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64, linux/arm64 diff --git a/.github/workflows/nix-update-lock.yaml b/.github/workflows/nix-update-lock.yaml index 43ec980..897c653 100644 --- a/.github/workflows/nix-update-lock.yaml +++ b/.github/workflows/nix-update-lock.yaml @@ -1,20 +1,20 @@ name: Update flake.lock on: - workflow_dispatch: - schedule: - - cron: '0 0 * * 0' - + workflow_dispatch: + schedule: + - cron: "0 0 * * 0" + jobs: - update-flake-inputs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/update-flake-lock@main - with: - pr-title: "chore: update flake.lock" - pr-labels: | - dependencies - automated - - uses: DeterminateSystems/flake-checker-action@main - - run: nix flake check --all-systems + update-flake-inputs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/update-flake-lock@main + with: + pr-title: "chore: update flake.lock" + pr-labels: | + dependencies + automated + - uses: DeterminateSystems/flake-checker-action@main + - run: nix flake check --all-systems diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index 243c7ba..95ab4f9 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -1,24 +1,24 @@ - name: +name: Nix CI on: - pull_request: - workflow_dispatch: - push: - branches: - - main - tags: - - v?[0-9]+.[0-9]+.[0-9]+* + pull_request: + workflow_dispatch: + push: + branches: + - main + tags: + - v?[0-9]+.[0-9]+.[0-9]+* concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: - nix-ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - with: - determinate: true - - uses: DeterminateSystems/flake-checker-action@main - - run: nix flake check --all-systems + nix-ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + with: + determinate: true + - uses: DeterminateSystems/flake-checker-action@main + - run: nix flake check --all-systems diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 3b5db47..b57ce04 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -1,44 +1,44 @@ -name: 'Build' +name: "Build" on: - push: - branches: - - 'main' - pull_request: + push: + branches: + - "main" + pull_request: jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v4 + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 - - name: Install node.js - uses: actions/setup-node@v4 - with: - node-version: 22 + - name: Install node.js + uses: actions/setup-node@v4 + with: + node-version: 22 - - uses: pnpm/action-setup@v4 - name: Install pnpm - with: - version: 10 - run_install: false + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 10 + run_install: false - - name: Get pnpm store directory - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- - - name: Install dependencies - run: pnpm install + - name: Install dependencies + run: pnpm install - - name: Build - run: pnpm build + - name: Build + run: pnpm build