Skip to content

Commit

Permalink
ci: strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
kijimaD committed Oct 21, 2023
1 parent bb4b1b4 commit 7571a85
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ env:
jobs:
# 共通処理
setup:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-lates, tmacos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: set up
uses: actions/setup-go@v4
Expand All @@ -22,9 +25,9 @@ jobs:
uses: actions/cache@main
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
${{ matrix.os }}-go-
build:
needs: setup
Expand Down

0 comments on commit 7571a85

Please sign in to comment.