Skip to content

Commit

Permalink
edit go_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Jan 11, 2024
1 parent 12d5153 commit 6c947b0
Showing 1 changed file with 41 additions and 10 deletions.
51 changes: 41 additions & 10 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ name: Go Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
test_amd64:
runs-on: ubuntu-latest

strategy:
matrix:
go-version:
- '1.15'
#- '1.16'
- '1.16'
- '1.17'
- '1.18'
- '1.19'
Expand All @@ -38,11 +36,44 @@ jobs:
- name: Build
run: go build -v ./...

- name: Test (purego)
run: go test --tags=purego ./...

- name: Test
run: go test ./... -json > TestResults-${{ matrix.go-version }}.json

- name: Upload Go test results
uses: actions/upload-artifact@v3
run: go test ./...

test_arm64:
runs-on: [self-hosted, macOS, ARM64]

strategy:
matrix:
go-version:
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum

- name: Install dependencies
run: |
go get .
go get github.com/RyuaNerin/elliptic2@v1.0.0
- name: Build
run: go build -v ./...

- name: Test (purego)
run: go test --tags=purego ./...

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

0 comments on commit 6c947b0

Please sign in to comment.