mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
chore: validate all supported goarchs
This commit is contained in:
parent
97a9916be0
commit
90b4996e55
37
.github/workflows/artifacts.yml
vendored
Normal file
37
.github/workflows/artifacts.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
on:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'README.md'
|
||||
- 'CONTRIBUTING.md'
|
||||
- 'COPYING'
|
||||
- 'docs/**'
|
||||
- '.github/*.md'
|
||||
- '.github/FUNDING.yml'
|
||||
|
||||
name: Build Code
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
goarch: [amd64]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
goarch: arm
|
||||
- os: windows-latest
|
||||
goarch: 386
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ github.workspace }}/src
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: go build
|
||||
env:
|
||||
GOARCH: ${{ matrix.goarch }}
|
4
.github/workflows/code.yml
vendored
4
.github/workflows/code.yml
vendored
|
@ -14,10 +14,6 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
- os: macos-latest
|
||||
- os: windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
|
|
Loading…
Reference in a new issue