|
|
@ -28,14 +28,14 @@ defaults:
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
|
|
|
|
name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
|
|
|
|
runs-on: windows-latest
|
|
|
|
runs-on: Ubuntu-latest
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
|
|
|
|
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
platform: [linux, darwin, win32]
|
|
|
|
platform: [linux, darwin, win32]
|
|
|
|
architecture: [x64, arm64]
|
|
|
|
architecture: [x64]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -56,6 +56,36 @@ jobs:
|
|
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
|
|
path: ${{ runner.temp }}/artifact
|
|
|
|
path: ${{ runner.temp }}/artifact
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-arm:
|
|
|
|
|
|
|
|
name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}] [${{ matrix.architecture }}]
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
ARTIFACT_NAME: ${{ inputs.tool-name }}-${{ inputs.tool-version }}-${{ matrix.platform }}-${{ matrix.architecture }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
|
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
|
|
|
|
platform: [linux, darwin, win32]
|
|
|
|
|
|
|
|
architecture: [arm64]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build ${{ inputs.tool-name }} ${{ inputs.tool-version }}
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
./builders/build-${{ inputs.tool-name }}.ps1 -Version ${{ inputs.tool-version }} `
|
|
|
|
|
|
|
|
-Platform ${{ matrix.platform }} `
|
|
|
|
|
|
|
|
-Architecture ${{ matrix.architecture }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Publish artifact
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: ${{ env.ARTIFACT_NAME }}
|
|
|
|
|
|
|
|
path: ${{ runner.temp }}/artifact
|
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
test:
|
|
|
|
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}]
|
|
|
|
name: Test ${{ inputs.tool-name }} ${{ inputs.tool-version }} [${{ matrix.platform }}]
|
|
|
|
needs: build
|
|
|
|
needs: build
|
|
|
|