Skip to content

Commit

Permalink
github: add macos-11 and macos-12 to test matrix, using tags to ignor…
Browse files Browse the repository at this point in the history
…e coreml
  • Loading branch information
progrium committed Jul 24, 2023
1 parent b811cce commit 722d6d8
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
on: [push, pull_request]
name: Test
env:
CGO_CFLAGS: -w
jobs:
test:
strategy:
matrix:
go-version: [stable, oldstable]
os: [macos-13]
os: [macos-11, macos-12, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
Expand All @@ -15,4 +17,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: go test -v ./...
run: |
TAGS=${{ matrix.os }}
TAGS=${TAGS//-} # remove dash
go test -tags $TAGS -v ./...
2 changes: 2 additions & 0 deletions coreml/MLArrayBatchProvider.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !macos12 && !macos11

package coreml

type MLArrayBatchProvider struct{ gen_MLArrayBatchProvider }
2 changes: 2 additions & 0 deletions coreml/MLDictionaryFeatureProvider.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !macos12 && !macos11

package coreml

type MLDictionaryFeatureProvider struct {
Expand Down
2 changes: 2 additions & 0 deletions coreml/MLFeatureValue.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !macos12 && !macos11

package coreml

type MLFeatureValue struct{ gen_MLFeatureValue }
2 changes: 2 additions & 0 deletions coreml/MLModel.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !macos12 && !macos11

package coreml

type MLModel struct{ gen_MLModel }
2 changes: 2 additions & 0 deletions coreml/MLModelAsset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !macos12 && !macos11

package coreml

type MLModelAsset struct{ gen_MLModelAsset }
2 changes: 2 additions & 0 deletions coreml/MLModelCollection.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !macos12 && !macos11

package coreml

type MLModelCollection struct{ gen_MLModelCollection }
5 changes: 4 additions & 1 deletion coreml/coreml_objc.gen.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
//go:build !macos12 && !macos11

package coreml

import (
"unsafe"

core "github.com/progrium/macdriver/core"
"github.com/progrium/macdriver/objc"
"unsafe"
)

/*
Expand Down
2 changes: 2 additions & 0 deletions coreml/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
//go:build !macos12 && !macos11

// Package coreml exposes the CoreML Framework.
package coreml

0 comments on commit 722d6d8

Please sign in to comment.