build #594
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
schedule: | |
- cron: '0 1 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
HUSKY: 0 | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: ⚙️ Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
with: | |
standalone: true | |
- name: ⚙️ Setup Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: .node-version | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm prettier | |
build: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: | |
- focal | |
- jammy | |
arch: | |
- x86_64 | |
- aarch64 | |
env: | |
DISTRO: ${{ matrix.distro }} # build target, name required by binary-builder | |
ARCH: ${{ matrix.arch }} # build target, name required by binary-builder | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: binary-builder | |
uses: containerbase/internal-tools@fa96b70003f221771f8c015cd3f598818ebf4d78 # v3.5.4 | |
with: | |
command: binary-builder | |
dry-run: ${{github.ref != 'refs/heads/main'}} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# Catch-all required check for matrix | |
success: | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
timeout-minutes: 1 | |
if: always() | |
steps: | |
- name: Fail for failed or cancelled build tests | |
if: | | |
needs.build.result == 'failure' || | |
needs.build.result == 'cancelled' | |
run: exit 1 |