Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,54 @@ jobs:
dir
- name: Test
run: go test -v -bench=. -benchtime=1x

# Test that we can at least cross-compile the package & tests on a variety
# of other platforms.
cross-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # don't abort the entire matrix if one element fails
matrix:
include:
# Note: {linux,windows,darwin}/amd64 is not in this matrix, because those
# are tested more exhaustively in the 'test' job above.
- goos: linux
goarch: "386" # quoted for yaml
- goos: linux
goarch: mips
- goos: linux
goarch: mipsle
- goos: linux
goarch: loong64
- goos: linux
goarch: arm
goarm: "5"
- goos: linux
goarch: arm
goarm: "7"
# Windows
- goos: windows
goarch: arm64
# BSDs
- goos: freebsd
goarch: amd64
- goos: openbsd
goarch: amd64

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARM: ${{ matrix.goarm }}
CGO_ENABLED: "0"
run: |
go install ./...
go test --exec=true ./...

2 changes: 1 addition & 1 deletion decode_dynamic.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build (unix || darwin || windows) && !nodynamic
//go:build (linux || darwin || windows) && !(nodynamic || arm || 386 || mips || mipsle)

package heic

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/gen2brain/heic

go 1.23
go 1.25
Comment thread
gen2brain marked this conversation as resolved.

require (
github.com/ebitengine/purego v0.9.1
Expand Down
2 changes: 1 addition & 1 deletion purego_other.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build (!unix && !darwin && !windows) || nodynamic
//go:build (!linux && !darwin && !windows) || android || nodynamic || arm || 386 || mips || mipsle

package heic

Expand Down
2 changes: 1 addition & 1 deletion purego_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build unix && !darwin && !nodynamic
//go:build linux && !android && !darwin && !(nodynamic || arm || 386 || mips || mipsle)

package heic

Expand Down