From 7cf57d7094bd25d126f6577c104c2e5b72284034 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Fri, 9 Dec 2022 01:23:08 +0100 Subject: [PATCH] add job aliases with different arch --- .github/workflows/versions.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/versions.yml b/.github/workflows/versions.yml index 1291b08..95d1b6a 100644 --- a/.github/workflows/versions.yml +++ b/.github/workflows/versions.yml @@ -20,7 +20,7 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v3 - - name: Setup Go and check latest + - name: Setup Go Stable uses: ./ with: go-version: stable @@ -35,12 +35,33 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v3 - - name: Setup Go and check latest + - name: Setup Go oldStable uses: ./ with: go-version: oldstable - name: Verify Go run: go version + + aliases-arch: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + version: [stable, oldstable] + architecture: [x64, x32] + exclude: + - os: macos-latest + architecture: x32 + steps: + - uses: actions/checkout@v3 + - name: Setup Go ${{ matrix.version }} ${{ matrix.architecture }} + uses: ./ + with: + go-version: ${{ matrix.version }} + architecture: ${{ matrix.architecture }} + - name: Verify Go + run: go version local-cache: name: Setup local-cache version