From 766fddd4fff5083acc51eebca8982a617cd52240 Mon Sep 17 00:00:00 2001 From: Enif Zed <108571201+zedifen@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:47:48 +0800 Subject: [PATCH] Add build matrix for workflow --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f016021..1dde992 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,18 @@ defaults: shell: bash jobs: build_caddy_with_naive: + strategy: + matrix: + target_os: [linux] + target_arch: [amd64, arm64] runs-on: ubuntu-22.04 env: - BUNDLE: caddy-forwardproxy-naive + GOOS: ${{ matrix.target_os }} + GOARCH: ${{ matrix.target_arch }} + # GOAMD64: v3 + CADDY_VERSION: ${{ github.event.inputs.version }} + FORWARDPROXY: ${{ github.event.inputs.forwardproxy }} + BUNDLE: caddy-forwardproxy-naive-${{ matrix.target_os }}-${{ matrix.target_arch }} steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5