2023-03-01 04:37:29 +08:00
|
|
|
name: build
|
|
|
|
|
2023-03-26 20:30:33 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-03-01 04:37:29 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2023-03-03 02:16:57 +08:00
|
|
|
- '.github/*-releases.json'
|
2023-03-01 04:37:29 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2024-11-11 00:34:41 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
node_version:
|
|
|
|
- 20
|
|
|
|
- 18
|
2023-03-01 04:37:29 +08:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:40:48 +08:00
|
|
|
uses: actions/checkout@v4
|
2023-03-01 04:37:29 +08:00
|
|
|
-
|
|
|
|
name: Build
|
2024-06-18 06:54:54 +08:00
|
|
|
uses: docker/bake-action@v5
|
2023-03-01 04:37:29 +08:00
|
|
|
with:
|
|
|
|
targets: build
|
2024-11-11 00:34:41 +08:00
|
|
|
env:
|
|
|
|
NODE_VERSION: ${{ matrix.node_version }}
|