From 6a20f93ddf6c94ca0260f7ae51b88454f44968a7 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 7 Nov 2025 18:59:38 -0500 Subject: [PATCH] ci: add simdjson dependency for homebrew node Signed-off-by: Xe Iaso --- .github/workflows/docker-pr.yml | 7 +- .github/workflows/docker.yml | 5 + .github/workflows/go.yml | 128 +++++++++--------- .github/workflows/package-builds-stable.yml | 2 +- .github/workflows/package-builds-unstable.yml | 102 +++++++------- 5 files changed, 127 insertions(+), 117 deletions(-) diff --git a/.github/workflows/docker-pr.yml b/.github/workflows/docker-pr.yml index 1069ba64..a79fe3c5 100644 --- a/.github/workflows/docker-pr.yml +++ b/.github/workflows/docker-pr.yml @@ -2,7 +2,7 @@ name: Docker image builds (pull requests) on: pull_request: - branches: [ "main" ] + branches: ["main"] env: DOCKER_METADATA_SET_OUTPUT_ENV: "true" @@ -21,6 +21,11 @@ jobs: fetch-depth: 0 persist-credentials: false + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential simdjson + - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@main diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 62ac0eef..949d32b0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -27,6 +27,11 @@ jobs: fetch-depth: 0 persist-credentials: false + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential simdjson + - name: Set lowercase image name run: | echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7f10cc1f..9aaa36a7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -15,77 +15,77 @@ jobs: #runs-on: alrest-techarohq runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - with: - persist-credentials: false + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false - - name: build essential - run: | - sudo apt-get update - sudo apt-get install -y build-essential + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential simdjson - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@main + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@main - - name: Setup Homebrew cellar cache - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 - with: - path: | - /home/linuxbrew/.linuxbrew/Cellar - /home/linuxbrew/.linuxbrew/bin - /home/linuxbrew/.linuxbrew/etc - /home/linuxbrew/.linuxbrew/include - /home/linuxbrew/.linuxbrew/lib - /home/linuxbrew/.linuxbrew/opt - /home/linuxbrew/.linuxbrew/sbin - /home/linuxbrew/.linuxbrew/share - /home/linuxbrew/.linuxbrew/var - key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} - restore-keys: | - ${{ runner.os }}-go-homebrew-cellar- + - name: Setup Homebrew cellar cache + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: | + /home/linuxbrew/.linuxbrew/Cellar + /home/linuxbrew/.linuxbrew/bin + /home/linuxbrew/.linuxbrew/etc + /home/linuxbrew/.linuxbrew/include + /home/linuxbrew/.linuxbrew/lib + /home/linuxbrew/.linuxbrew/opt + /home/linuxbrew/.linuxbrew/sbin + /home/linuxbrew/.linuxbrew/share + /home/linuxbrew/.linuxbrew/var + key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-homebrew-cellar- - - name: Install Brew dependencies - run: | - brew bundle + - name: Install Brew dependencies + run: | + brew bundle - - name: Setup Golang caches - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + - name: Setup Golang caches + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- - - name: Cache playwright binaries - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ hashFiles('**/go.sum') }} + - name: Cache playwright binaries + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('**/go.sum') }} - - name: install node deps - run: | - npm ci + - name: install node deps + run: | + npm ci - - name: install playwright browsers - run: | - npx --no-install playwright@1.52.0 install --with-deps - npx --no-install playwright@1.52.0 run-server --port 9001 & + - name: install playwright browsers + run: | + npx --no-install playwright@1.52.0 install --with-deps + npx --no-install playwright@1.52.0 run-server --port 9001 & - - name: Build - run: npm run build + - name: Build + run: npm run build - - name: Test - run: npm run test + - name: Test + run: npm run test - - name: Lint with staticcheck - uses: dominikh/staticcheck-action@024238d2898c874f26d723e7d0ff4308c35589a2 # v1.4.0 - with: - version: "latest" + - name: Lint with staticcheck + uses: dominikh/staticcheck-action@024238d2898c874f26d723e7d0ff4308c35589a2 # v1.4.0 + with: + version: "latest" - - name: Govulncheck - run: | - go tool govulncheck ./... + - name: Govulncheck + run: | + go tool govulncheck ./... diff --git a/.github/workflows/package-builds-stable.yml b/.github/workflows/package-builds-stable.yml index 20ee7eee..bf82f4ca 100644 --- a/.github/workflows/package-builds-stable.yml +++ b/.github/workflows/package-builds-stable.yml @@ -23,7 +23,7 @@ jobs: - name: build essential run: | sudo apt-get update - sudo apt-get install -y build-essential + sudo apt-get install -y build-essential simdjson - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@main diff --git a/.github/workflows/package-builds-unstable.yml b/.github/workflows/package-builds-unstable.yml index bf25b66e..311032c6 100644 --- a/.github/workflows/package-builds-unstable.yml +++ b/.github/workflows/package-builds-unstable.yml @@ -2,9 +2,9 @@ name: Package builds (unstable) on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -15,60 +15,60 @@ jobs: #runs-on: alrest-techarohq runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - with: - persist-credentials: false - fetch-tags: true - fetch-depth: 0 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + fetch-tags: true + fetch-depth: 0 - - name: build essential - run: | - sudo apt-get update - sudo apt-get install -y build-essential + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential simdjson - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@main + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@main - - name: Setup Homebrew cellar cache - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 - with: - path: | - /home/linuxbrew/.linuxbrew/Cellar - /home/linuxbrew/.linuxbrew/bin - /home/linuxbrew/.linuxbrew/etc - /home/linuxbrew/.linuxbrew/include - /home/linuxbrew/.linuxbrew/lib - /home/linuxbrew/.linuxbrew/opt - /home/linuxbrew/.linuxbrew/sbin - /home/linuxbrew/.linuxbrew/share - /home/linuxbrew/.linuxbrew/var - key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} - restore-keys: | - ${{ runner.os }}-go-homebrew-cellar- + - name: Setup Homebrew cellar cache + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: | + /home/linuxbrew/.linuxbrew/Cellar + /home/linuxbrew/.linuxbrew/bin + /home/linuxbrew/.linuxbrew/etc + /home/linuxbrew/.linuxbrew/include + /home/linuxbrew/.linuxbrew/lib + /home/linuxbrew/.linuxbrew/opt + /home/linuxbrew/.linuxbrew/sbin + /home/linuxbrew/.linuxbrew/share + /home/linuxbrew/.linuxbrew/var + key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-homebrew-cellar- - - name: Install Brew dependencies - run: | - brew bundle + - name: Install Brew dependencies + run: | + brew bundle - - name: Setup Golang caches - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + - name: Setup Golang caches + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- - - name: install node deps - run: | - npm ci + - name: install node deps + run: | + npm ci - - name: Build Packages - run: | - go tool yeet + - name: Build Packages + run: | + go tool yeet - - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 - with: - name: packages - path: var/* + - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: packages + path: var/*