Skip to content

Commit

Permalink
Add test on dragonfly
Browse files Browse the repository at this point in the history
  • Loading branch information
iwdgo committed Nov 26, 2024
1 parent 974119b commit fa3ce63
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dragonfly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: dragonfly
on:
push:
branches:
- 'master'
paths:
- 'action.yml'
- '.github/workflows/dragonfly.yml'
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
id: go

- name: Build go from tip
uses: iwdgo/gotip-build@updates
id: gotip
with:
go_variables: GO_TEST_SHORT=1 GO_TEST_TIMEOUT_SCALE=8 GOOS=dragonfly GOARCH=amd64
test_build: true
1 change: 1 addition & 0 deletions architecture/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var distro = []struct {
{"linux", "arm", "7", "", "", "", "arm v7"},
{"linux", "arm64", "8", "", "", "", "arm v8"},
{"linux", "386", "", "i386", "", "", ""},
{"dragonfly", "amd64", "", "", "", "chainguard/dragonfly", ""},
}

// setDefault returns the variable value read using os.Getenv and d when the value read is empty.
Expand Down

0 comments on commit fa3ce63

Please sign in to comment.