add job aliases with different arch

pull/300/head^2
Dmitry Shibanov 2 years ago
parent 7e3178723a
commit 7cf57d7094

@ -20,7 +20,7 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Go and check latest - name: Setup Go Stable
uses: ./ uses: ./
with: with:
go-version: stable go-version: stable
@ -35,13 +35,34 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Go and check latest - name: Setup Go oldStable
uses: ./ uses: ./
with: with:
go-version: oldstable go-version: oldstable
- name: Verify Go - name: Verify Go
run: go version 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: local-cache:
name: Setup local-cache version name: Setup local-cache version
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}

Loading…
Cancel
Save