Skip to content

Commit

Permalink
CI updated
Browse files Browse the repository at this point in the history
  • Loading branch information
albenik committed Jan 28, 2024
1 parent 9b94bc9 commit aa20f02
Showing 1 changed file with 10 additions and 26 deletions.
36 changes: 10 additions & 26 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,18 @@ jobs:
- 'macos-latest'
- 'windows-latest'
go:
- '1.18'
- '1.19'
- '1.20'
- '1.21'

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

- name: Get dependencies
run: go mod download

- name: Test
run: go test -v -race ./...
- run: go test -v -race ./...

# Lint
# lint:
Expand Down Expand Up @@ -87,8 +79,7 @@ jobs:
# - { os: ubuntu-latest, goos: darwin, goarch: arm64 }

- { os: macos-latest, goos: darwin, goarch: amd64 }
# Currently `macos-latest` is equeal to `macos-11` which does not support arm64
# - { os: macos-latest, goos: darwin, goarch: arm64 }
- { os: macos-latest, goos: darwin, goarch: arm64 }

- { os: windows-latest, goos: windows, goarch: amd64 }
- { os: windows-latest, goos: windows, goarch: arm64 }
Expand All @@ -100,16 +91,9 @@ jobs:
GOARCH: ${{ matrix.goarch }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Get dependencies
run: go mod download

- name: Build
run: go build
go-version: '1.21'
- run: go mod download
- run: go build

0 comments on commit aa20f02

Please sign in to comment.