chore(deps): update dependency golang to v1.23.6 (#62) #2578
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 | |
- 'renovate/**' | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: ⚙️ Setup | |
uses: containerbase/internal-tools/setup@fcbde3cdedad26eabf59776988e2a4b47fee98e5 # v3.7.0 | |
with: | |
save-cache: true | |
- name: lint | |
run: pnpm prettier | |
build: | |
needs: | |
- lint | |
runs-on: ${{ matrix.arch.os }} | |
name: build (${{ matrix.arch.name }}) | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
arch: | |
- name: x86_64 | |
os: ubuntu-24.04 | |
- name: aarch64 | |
os: ubuntu-24.04-arm | |
env: | |
ARCH: ${{ matrix.arch.name }} # build target, name required by binary-builder | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
show-progress: false | |
- name: binary-builder | |
uses: containerbase/internal-tools@fcbde3cdedad26eabf59776988e2a4b47fee98e5 # v3.7.0 | |
with: | |
command: binary-builder | |
dry-run: ${{github.ref != 'refs/heads/main'}} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
success: | |
runs-on: ubuntu-24.04 | |
needs: | |
- lint | |
- build | |
timeout-minutes: 1 | |
if: always() | |
steps: | |
- name: Fail for failed or cancelled build | |
if: | | |
needs.build.result == 'failure' || | |
needs.build.result == 'cancelled' | |
run: exit 1 | |
- name: Fail for failed or cancelled lint | |
if: | | |
needs.lint.result == 'failure' || | |
needs.lint.result == 'cancelled' | |
run: exit 1 |