Skip to content

Commit

Permalink
Merge pull request #265 from ackama:ci/use-matrix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 693647610
  • Loading branch information
copybara-github committed Nov 6, 2024
2 parents 46efb81 + a9b6216 commit f31ad16
Showing 1 changed file with 20 additions and 42 deletions.
62 changes: 20 additions & 42 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,29 @@ on:
branches: [ "main" ]

jobs:

build-for-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x

- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.x"

- name: Set up protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go

- name: Build
run: make

- name: Test
run: make test

build-for-windows:
runs-on: windows-latest
tests:
stragegy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x

- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.x"
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "23.x"

- name: Set up protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go
- name: Set up protoc-gen-go
run: go install google.golang.org/protobuf/cmd/protoc-gen-go

- name: Build
run: make
- name: Build
run: make

- name: Test
run: make test
- name: Test
run: make test

0 comments on commit f31ad16

Please sign in to comment.