support macos with matrix
This commit is contained in:
parent
92c0e78be3
commit
6cf59a01af
35
.github/workflows/use-action-macos.yaml
vendored
35
.github/workflows/use-action-macos.yaml
vendored
@ -1,35 +0,0 @@
|
|||||||
name: Use Action (macOS)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ['main']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
use-action:
|
|
||||||
name: Use Action
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: 1.16
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
# Minimal publish
|
|
||||||
- uses: imjasonh/setup-ko@main
|
|
||||||
- run: ko publish --bare ./
|
|
||||||
|
|
||||||
# Install an old release.
|
|
||||||
- uses: imjasonh/setup-ko@main
|
|
||||||
with:
|
|
||||||
version: v0.8.0
|
|
||||||
- name: Check installed version
|
|
||||||
run: ko version | grep 0.8.0
|
|
||||||
|
|
||||||
# Install from tip
|
|
||||||
- uses: imjasonh/setup-ko@v0.1
|
|
||||||
with:
|
|
||||||
version: tip
|
|
||||||
- name: Check installed version (tip)
|
|
||||||
run: |
|
|
||||||
sudo rm /usr/local/bin/ko # Uninstall previous versions.
|
|
||||||
ko version
|
|
8
.github/workflows/use-action.yaml
vendored
8
.github/workflows/use-action.yaml
vendored
@ -7,7 +7,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
use-action:
|
use-action:
|
||||||
name: Use Action
|
name: Use Action
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [ubuntu-latest, macos-latest]
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
@ -15,7 +19,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
# Minimal publish
|
# Minimal publish
|
||||||
- uses: imjasonh/setup-ko@v0.1
|
- uses: imjasonh/setup-ko@main
|
||||||
- run: ko publish --bare ./
|
- run: ko publish --bare ./
|
||||||
|
|
||||||
# Install an old release.
|
# Install an old release.
|
||||||
|
Loading…
Reference in New Issue
Block a user